forked from github/plane
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,
|
"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>
|
<span className="grid place-items-center flex-shrink-0">{item.icon}</span>
|
||||||
<p className="flex-grow truncate">{item.title}</p>
|
<p className="flex-grow truncate">{item.title}</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user