mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +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) {
|
if (this.overlayVisible) {
|
||||||
this.overlayVisible = false;
|
this.overlayVisible = false;
|
||||||
}
|
}
|
||||||
} else if (this.overlayVisible && event.code === 'Enter' && this.manualInput && event.target.value !== null && event.target.value?.trim() !== '') {
|
} else if (event.code === 'Enter') {
|
||||||
try {
|
if (this.manualInput && event.target.value !== null && event.target.value?.trim() !== '' && this.isValidSelection(this.parseValue(event.target.value))) {
|
||||||
if (this.isValidSelection(this.parseValue(event.target.value))) {
|
this.overlayVisible = false;
|
||||||
this.overlayVisible = false;
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
/* NoOp */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue