Merge pull request #5051 from antlionguard/master

feat(Calendar): close calendar overlay if pressed enter, input value …
pull/5069/head
Tuğçe Küçükoğlu 2024-01-11 20:29:18 +03:00 committed by GitHub
commit 6e1ee879f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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) {