From 2d1201cc92393509d4324cf5e072047464660a08 Mon Sep 17 00:00:00 2001 From: "M. Palanikannan" <73993394+Palanikannan1437@users.noreply.github.com> Date: Fri, 10 May 2024 16:41:13 +0530 Subject: [PATCH] fix: button click propagation stopped (#4430) --- packages/editor/extensions/src/extensions/slash-commands.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor/extensions/src/extensions/slash-commands.tsx b/packages/editor/extensions/src/extensions/slash-commands.tsx index 752fbe63c..c1b1ef9c0 100644 --- a/packages/editor/extensions/src/extensions/slash-commands.tsx +++ b/packages/editor/extensions/src/extensions/slash-commands.tsx @@ -315,7 +315,10 @@ const CommandList = ({ items, command }: { items: CommandItemProps[]; command: a "bg-custom-background-80": index === selectedIndex, } )} - onClick={() => selectItem(index)} + onClick={(e) => { + e.stopPropagation(); + selectItem(index); + }} > {item.icon}

{item.title}