wip file field
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function onClickOutside(ele, closest, cb) {
|
||||
document.addEventListener('click', function (event) {
|
||||
if (!event.target.closest(closest)) {
|
||||
cb(event)
|
||||
}
|
||||
}, false);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user