Skip to content

Commit

Permalink
Fixed #1428 - [feature request]Please add event while menu/overlay is…
Browse files Browse the repository at this point in the history
… dismissed
  • Loading branch information
tugcekucukoglu committed Aug 25, 2021
1 parent eef5c7a commit d924dba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import Menuitem from './Menuitem.vue';
export default {
name: 'Menu',
emits: ['show', 'hide'],
inheritAttrs: false,
props: {
popup: {
Expand Down Expand Up @@ -117,11 +118,14 @@ export default {
if (this.autoZIndex) {
ZIndexUtils.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);
}
this.$emit('show');
},
onLeave() {
this.unbindOutsideClickListener();
this.unbindResizeListener();
this.unbindScrollListener();
this.$emit('hide');
},
onAfterLeave(el) {
if (this.autoZIndex) {
Expand Down

0 comments on commit d924dba

Please sign in to comment.