Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Commit

Permalink
fix: Prevent click-outside event when clicking on the menu (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Jan 29, 2022
1 parent 1c0867c commit dd93ae9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Vue3DatePicker/components/DatepickerMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@
}
if (menu) {
menu.addEventListener('pointerdown', (e) => {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
});
}
Expand Down Expand Up @@ -438,6 +440,8 @@
};
const handleDpMenuClick = (e: Event) => {
e.stopPropagation();
e.preventDefault();
e.stopImmediatePropagation();
};
Expand Down

0 comments on commit dd93ae9

Please sign in to comment.