+3
-6
lines changedFilter options
+3
-6
lines changed Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
17
17
18
18
<script>
19
19
import MdComponent from 'core/MdComponent'
20
-
import MdPropValidator from 'core/utils/MdPropValidator'
21
20
import MdObserveEvent from 'core/utils/MdObserveEvent'
22
21
import MdResizeObserver from 'core/utils/MdResizeObserver'
23
22
import MdPopover from 'components/MdPopover/MdPopover'
@@ -76,13 +75,12 @@
76
75
shouldRender (shouldRender) {
77
76
if (shouldRender) {
78
77
this.setPopperSettings()
79
-
80
-
this.$nextTick().then(() => {
78
+
setTimeout(() => {
81
79
this.setInitialHighlightIndex()
82
80
this.createClickEventObserver()
83
81
this.createResizeObserver()
84
82
this.createKeydownListener()
85
-
})
83
+
}, 0)
86
84
}
87
85
}
88
86
},
@@ -207,8 +205,7 @@
207
205
if (document) {
208
206
this.MdMenu.bodyClickObserver = new MdObserveEvent(document.body, 'click', $event => {
209
207
$event.stopPropagation()
210
-
211
-
if (!this.isMenuContentEl($event) && (this.MdMenu.closeOnClick || this.isBackdropExpectMenu($event))) {
208
+
if (!this.isMenu($event) && (this.MdMenu.closeOnClick || !this.isMenuContentEl($event))) {
212
209
this.MdMenu.active = false
213
210
this.MdMenu.bodyClickObserver.destroy()
214
211
this.MdMenu.windowResizeObserver.destroy()
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