Skip to content

Commit

Permalink
Merge pull request #6703 from betavs/hotfix/date-picker-propagation
Browse files Browse the repository at this point in the history
fix(date-picker): prevent events from bubbling when overlay is clicked
  • Loading branch information
tugcekucukoglu authored Nov 13, 2024
2 parents 3aa69fe + 2fd4a8e commit e028822
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 @@ -2671,6 +2671,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 e028822

Please sign in to comment.