mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #5050 - Calendar: panel does not hide when pressing enter
This commit is contained in:
parent
6e1ee879f2
commit
e251feb83a
1 changed files with 3 additions and 7 deletions
|
@ -2665,13 +2665,9 @@ 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 */
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue