Fixed #5050 - Calendar: panel does not hide when pressing enter
parent
6e1ee879f2
commit
e251feb83a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue