|
@@ -28,6 +28,8 @@ export default function on (el, event, modifiers, callback) {
|
|
handler = wrapHandler(handler, (next, e) => {
|
|
handler = wrapHandler(handler, (next, e) => {
|
|
if (el.contains(e.target)) return
|
|
if (el.contains(e.target)) return
|
|
|
|
|
|
|
|
+ if (e.target.isConnected === false) return
|
|
|
|
+
|
|
if (el.offsetWidth < 1 && el.offsetHeight < 1) return
|
|
if (el.offsetWidth < 1 && el.offsetHeight < 1) return
|
|
|
|
|
|
// Additional check for special implementations like x-collapse
|
|
// Additional check for special implementations like x-collapse
|