fixed #159
This commit is contained in:
梁灏 2017-01-03 12:05:25 +08:00
parent 7c4c9d9ce9
commit e200618755
2 changed files with 17 additions and 10 deletions

View file

@ -466,6 +466,20 @@
}
},
ready () {
if (!this.multiple && this.filterable && this.model) {
this.findChild((child) => {
if (this.model === child.value) {
if (child.label) {
this.query = child.label;
} else if (child.searchLabel) {
this.query = child.searchLabel;
} else {
this.query = child.value;
}
}
});
}
this.updateOptions(true);
document.addEventListener('keydown', this.handleKeydown);