Skip to content

Commit

Permalink
Fixed #5618 - AutoComplete: Enter does not submit form
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Apr 19, 2024
1 parent f1e3ded commit b0b91c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b0b91c2

Please sign in to comment.