Skip to content

Commit 9892303

Browse files
authored
fix(richtext-lexical): add form id to drawSlug (#9613)
Fixes #9532 The error occurs because the drawerSlug declaration in `blocks/client/component` contains `formData.id`, while `blocks/client/componentInline` does not. So I add `formData.id`. ### Before https://github.com/user-attachments/assets/14247634-ab60-437f-8986-c76cafec5c09 ### After https://github.com/user-attachments/assets/b26bc1ca-b071-4bf5-a9f0-fda4e9282538
1 parent 0716128 commit 9892303

File tree

1 file changed

+1
-1
lines changed
  • packages/richtext-lexical/src/features/blocks/client/componentInline

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/features/blocks/client/componentInline/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const InlineBlockComponent: React.FC<Props> = (props) => {
9797
)
9898

9999
const drawerSlug = formatDrawerSlug({
100-
slug: `lexical-inlineBlocks-create-` + uuidFromContext,
100+
slug: `lexical-inlineBlocks-create-${uuidFromContext}-${formData.id}`,
101101
depth: editDepth,
102102
})
103103
const { toggleDrawer } = useLexicalDrawer(drawerSlug, true)

0 commit comments

Comments
 (0)