fix: stop event propagation itself on clicking

This commit is contained in:
Palanikannan M 2024-06-10 16:05:55 +05:30
parent f0699e7aac
commit b7cd75e359

View File

@ -244,7 +244,10 @@ function createToolbox({
className: className:
"flex items-center gap-2 px-1 py-1.5 bg-custom-background-100 hover:bg-custom-background-80 text-sm text-custom-text-200 rounded cursor-pointer", "flex items-center gap-2 px-1 py-1.5 bg-custom-background-100 hover:bg-custom-background-80 text-sm text-custom-text-200 rounded cursor-pointer",
itemType: "div", itemType: "div",
onClick: () => onClickItem(item), onClick: (e) => {
e.stopPropagation();
onClickItem(item);
},
}, },
[ [
h("span", { h("span", {