File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 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
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
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.
0 commit comments