fix: showCreateItem bug #403

修改显示创建项的逻辑判断,当出现value和label不一致时 原逻辑会导致选择option时会将当前当选择项作为一个创建项显示出来
This commit is contained in:
xubowen 2020-03-31 19:44:08 +08:00 committed by GitHub
parent 40c64eeb8b
commit 382b4d6fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,7 +357,7 @@
state = true;
const $options = findComponentsDownward(this, 'iOption');
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;