Fixed #3379 - AutoComplete: Duplicate Value

pull/4954/head
tugcekucukoglu 2023-12-11 11:20:36 +03:00
parent 46c3c9738e
commit 85ae6d9e5e
1 changed files with 2 additions and 1 deletions

View File

@ -424,7 +424,8 @@ export default {
if (this.forceSelection) {
let valid = false;
if (this.visibleOptions) {
// when forceSelection is on, prevent called twice onOptionSelect()
if (this.visibleOptions && !this.multiple) {
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
if (matchedValue !== undefined) {