+7
-1
lines changedFilter options
+7
-1
lines changed Original file line number Diff line number Diff line change
@@ -201,7 +201,13 @@
201
201
return this.$refs.menu ? this.$refs.menu.contains(target) : false
202
202
},
203
203
isBackdropExpectMenu ($event) {
204
-
return !this.$el.contains($event.target) && !this.isMenu($event)
204
+
const contains = (el, target) => {
205
+
if ('contains' in el) {
206
+
return el.contains(target)
207
+
}
208
+
return el.compareDocumentPosition(target) & 16
209
+
}
210
+
return !contains(this.$el, $event.target) && !this.isMenu($event)
205
211
},
206
212
createClickEventObserver () {
207
213
if (document) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4