File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1717
1818<script >
1919 import MdComponent from ' core/MdComponent'
20- import MdPropValidator from ' core/utils/MdPropValidator'
2120 import MdObserveEvent from ' core/utils/MdObserveEvent'
2221 import MdResizeObserver from ' core/utils/MdResizeObserver'
2322 import MdPopover from ' components/MdPopover/MdPopover'
7675 shouldRender (shouldRender ) {
7776 if (shouldRender) {
7877 this .setPopperSettings ()
79-
80- this .$nextTick ().then (() => {
78+ setTimeout (() => {
8179 this .setInitialHighlightIndex ()
8280 this .createClickEventObserver ()
8381 this .createResizeObserver ()
8482 this .createKeydownListener ()
85- })
83+ }, 0 )
8684 }
8785 }
8886 },
207205 if (document ) {
208206 this .MdMenu .bodyClickObserver = new MdObserveEvent (document .body , ' click' , $event => {
209207 $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))) {
212209 this .MdMenu .active = false
213210 this .MdMenu .bodyClickObserver .destroy ()
214211 this .MdMenu .windowResizeObserver .destroy ()
You can’t perform that action at this time.
0 commit comments