Merge pull request #5051 from antlionguard/master
feat(Calendar): close calendar overlay if pressed enter, input value …pull/5069/head
commit
6e1ee879f2
|
@ -2665,6 +2665,14 @@ 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))) {
|
||||
this.overlayVisible = false;
|
||||
}
|
||||
} catch (err) {
|
||||
/* NoOp */
|
||||
}
|
||||
}
|
||||
},
|
||||
overlayRef(el) {
|
||||
|
|
Loading…
Reference in New Issue