Fixed #3379 - AutoComplete: Duplicate Value

This commit is contained in:
tugcekucukoglu 2023-12-11 11:20:36 +03:00
parent 46c3c9738e
commit 85ae6d9e5e

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) {