mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5618 - AutoComplete: Enter does not submit form
This commit is contained in:
parent
f1e3ded7da
commit
b0b91c2050
1 changed files with 1 additions and 1 deletions
|
@ -617,10 +617,10 @@ export default {
|
|||
onEnterKey(event) {
|
||||
if (!this.overlayVisible) {
|
||||
this.focusedOptionIndex = -1; // reset
|
||||
this.onArrowDownKey(event);
|
||||
} else {
|
||||
if (this.focusedOptionIndex !== -1) {
|
||||
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue