可搜索下拉菜单 输入无匹配时,移出焦点,应该清楚输入的query

This commit is contained in:
huangliangxiang 2017-01-10 20:44:35 +08:00
parent 2810d8c78d
commit eda30489eb

View file

@ -442,7 +442,7 @@
const model = this.model;
if (this.multiple) {
//
this.query = '';
} else {
if (model !== '') {
this.findChild((child) => {
@ -450,6 +450,8 @@
this.query = child.label === undefined ? child.searchLabel : child.label;
}
});
} else {
this.query = '';
}
}
}, 300);