mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
fix: once block type changed, the TextBlock node should be re-render (#551)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user