Merge pull request #184 from candyHuang/master

可搜索下拉菜单 输入无匹配时,移出焦点,应该清楚输入的query
This commit is contained in:
Aresn 2017-01-11 08:55:12 +08:00 committed by GitHub
commit 12bd19d7a8

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