fix: showCreateItem bug #403
修改显示创建项的逻辑判断,当出现value和label不一致时 原逻辑会导致选择option时会将当前当选择项作为一个创建项显示出来
This commit is contained in:
parent
40c64eeb8b
commit
382b4d6fb8
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@
|
||||||
state = true;
|
state = true;
|
||||||
const $options = findComponentsDownward(this, 'iOption');
|
const $options = findComponentsDownward(this, 'iOption');
|
||||||
if ($options && $options.length) {
|
if ($options && $options.length) {
|
||||||
if ($options.find(item => item.showLabel === this.query)) state = false;
|
if ($options.find(item => item.optionLabel === this.query)) state = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Add table
Reference in a new issue