mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 02:44:49 +03:00
fix: once block type changed, the TextBlock node should be re-render (#551)
This commit is contained in:
parent
14f50cd821
commit
b59b010dec
@ -266,6 +266,8 @@ export const TextView = ({
|
|||||||
>
|
>
|
||||||
<BlockPendantProvider editor={editor} block={block}>
|
<BlockPendantProvider editor={editor} block={block}>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
// Once the block type changed, this node should be re-render
|
||||||
|
key={`${block.id}_${block.type}`}
|
||||||
block={block}
|
block={block}
|
||||||
type={block.type}
|
type={block.type}
|
||||||
editor={editor}
|
editor={editor}
|
||||||
|
Loading…
Reference in New Issue
Block a user