Skip to content

Commit

Permalink
fix(MdMenu): unexpected close on item click (#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
hastom authored and marcosmoura committed May 13, 2019
1 parent a9feb6f commit c274693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdMenu/MdMenuContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
this.MdMenu.bodyClickObserver = new MdObserveEvent(document.body, 'click', $event => {
$event.stopPropagation()
if (!this.isMenu($event) && (this.MdMenu.closeOnClick || this.isBackdropExpectMenu($event))) {
if (!this.isMenuContentEl($event) && (this.MdMenu.closeOnClick || this.isBackdropExpectMenu($event))) {
this.MdMenu.active = false
this.MdMenu.bodyClickObserver.destroy()
this.MdMenu.windowResizeObserver.destroy()
Expand Down

0 comments on commit c274693

Please sign in to comment.