Web:Components:Selector: fix select

This commit is contained in:
Timofey Boyko 2023-06-08 18:31:33 +03:00
parent 0d075785cb
commit af7c0ec866

View File

@ -49,7 +49,10 @@ const Item = React.memo(({ index, style, data }: ItemProps) => {
};
const onClick = (e: React.MouseEvent<HTMLDivElement>) => {
if (e.target instanceof HTMLElement && e.target.closest(".checkbox"))
if (
(e.target instanceof HTMLElement || e.target instanceof SVGElement) &&
!!e.target.closest(".checkbox")
)
return;
onSelect && onSelect(item);