wip file field

This commit is contained in:
2024-09-28 18:36:18 +03:00
parent 5ed57838fc
commit 39e7a3aed4
25 changed files with 674 additions and 44 deletions
+8
View File
@@ -0,0 +1,8 @@
export function onClickOutside(ele, closest, cb) {
document.addEventListener('click', function (event) {
if (!event.target.closest(closest)) {
cb(event)
}
}, false);
};