mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00: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}>
|
||||
<TextBlock
|
||||
// Once the block type changed, this node should be re-render
|
||||
key={`${block.id}_${block.type}`}
|
||||
block={block}
|
||||
type={block.type}
|
||||
editor={editor}
|
||||
|
||||
Reference in New Issue
Block a user