Fixed #5050 - Calendar: panel does not hide when pressing enter

pull/5069/head
tugcekucukoglu 2024-01-11 20:30:42 +03:00
parent 6e1ee879f2
commit e251feb83a
1 changed files with 3 additions and 7 deletions

View File

@ -2665,14 +2665,10 @@ export default {
if (this.overlayVisible) {
this.overlayVisible = false;
}
} else if (this.overlayVisible && event.code === 'Enter' && this.manualInput && event.target.value !== null && event.target.value?.trim() !== '') {
try {
if (this.isValidSelection(this.parseValue(event.target.value))) {
} else if (event.code === 'Enter') {
if (this.manualInput && event.target.value !== null && event.target.value?.trim() !== '' && this.isValidSelection(this.parseValue(event.target.value))) {
this.overlayVisible = false;
}
} catch (err) {
/* NoOp */
}
}
},
overlayRef(el) {