Skip to content

Commit

Permalink
fix(date-picker): prevent events from bubbling when overlay is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Nov 1, 2024
1 parent d018dcf commit 05390cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2672,6 +2672,8 @@ export default {
return this.currentView === 'month' ? this.currentYear : month.year;
},
onOverlayClick(event) {
event.stopPropagation();
if (!this.inline) {
OverlayEventBus.emit('overlay-click', {
originalEvent: event,
Expand Down

0 comments on commit 05390cb

Please sign in to comment.