Fixed #5618 - AutoComplete: Enter does not submit form

pull/5630/head
tugcekucukoglu 2024-04-19 15:11:30 +03:00
parent f1e3ded7da
commit b0b91c2050
1 changed files with 1 additions and 1 deletions

View File

@ -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();