mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: button click propagation stopped (#4430)
This commit is contained in:
parent
b725c69882
commit
2d1201cc92
@ -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);
|
||||
}}
|
||||
>
|
||||
<span className="grid place-items-center flex-shrink-0">{item.icon}</span>
|
||||
<p className="flex-grow truncate">{item.title}</p>
|
||||
|
Loading…
Reference in New Issue
Block a user