Skip to content

Commit

Permalink
feat(Menu): close menu after clicking menu item (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Dec 19, 2023
1 parent 420d1c5 commit 56683e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/menu/menu-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default defineComponent({
itemRef,
href,
target,
submenu,
};
},
methods: {
Expand All @@ -66,6 +67,7 @@ export default defineComponent({
}
});
}
this.submenu?.closeParentPopup?.(e);
},
},
render() {
Expand Down

0 comments on commit 56683e1

Please sign in to comment.