fix: type adjustment for compilation
This commit is contained in:
parent
02f96d1d53
commit
138561b3bc
@ -1054,7 +1054,10 @@ const hideContextMenu = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleEmptyAreaClick = (e: MouseEvent) => {
|
const handleEmptyAreaClick = (e: MouseEvent) => {
|
||||||
if (e.target.closest("item") || e.target.closest(".item")) return;
|
const target = e.target;
|
||||||
|
if (!(target instanceof HTMLElement)) return;
|
||||||
|
|
||||||
|
if (target.closest("item") || target.closest(".item")) return;
|
||||||
|
|
||||||
fileStore.selected = [];
|
fileStore.selected = [];
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user