From 2fd4a8e8a6163aa4acc0f2c4df64d9db6e49c67d Mon Sep 17 00:00:00 2001 From: betavs Date: Fri, 1 Nov 2024 17:00:00 +0800 Subject: [PATCH] fix(date-picker): prevent events from bubbling when overlay is clicked --- packages/primevue/src/datepicker/DatePicker.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index ae0d801cdf..c28357a79a 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -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,