Merge pull request #6703 from betavs/hotfix/date-picker-propagation

fix(date-picker): prevent events from bubbling when overlay is clicked
pull/6775/head
Tuğçe Küçükoğlu 2024-11-13 11:04:26 +03:00 committed by GitHub
commit e0288223fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2671,6 +2671,8 @@ export default {
return this.currentView === 'month' ? this.currentYear : month.year; return this.currentView === 'month' ? this.currentYear : month.year;
}, },
onOverlayClick(event) { onOverlayClick(event) {
event.stopPropagation();
if (!this.inline) { if (!this.inline) {
OverlayEventBus.emit('overlay-click', { OverlayEventBus.emit('overlay-click', {
originalEvent: event, originalEvent: event,