Web:Components:Selector: fix select
This commit is contained in:
parent
0d075785cb
commit
af7c0ec866
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user