A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/92794c5 below:

fix undefined dom.contains in IE11 · vuematerial/vue-material@92794c5 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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