Skip to content

Commit

Permalink
Fixed #3161 - AutoComplete: the forceSelection property causes incons…
Browse files Browse the repository at this point in the history
…istent behavior when the value is removed
  • Loading branch information
tugcekucukoglu committed Dec 5, 2022
1 parent 8c18db1 commit f31e4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export default {
let valid = false;
if (this.visibleOptions) {
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, event.target.value));
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
if (matchedValue !== undefined) {
valid = true;
Expand Down

0 comments on commit f31e4d9

Please sign in to comment.