fixed #718
This commit is contained in:
parent
59e1a7c6c1
commit
83b7388598
4 changed files with 15 additions and 44 deletions
|
@ -56,7 +56,7 @@
|
|||
handleTriggerItem (item, fromInit = false) {
|
||||
if (item.disabled) return;
|
||||
|
||||
// return value back recursion
|
||||
// return value back recursion // 向上递归,设置临时选中值(并非真实选中)
|
||||
const backItem = this.getBaseItem(item);
|
||||
this.tmpItem = backItem;
|
||||
this.emitUpdate([backItem]);
|
||||
|
|
|
@ -493,7 +493,7 @@
|
|||
this.query = query;
|
||||
},
|
||||
modelToQuery() {
|
||||
if (!this.multiple && this.filterable && this.model) {
|
||||
if (!this.multiple && this.filterable && this.model !== undefined) {
|
||||
this.findChild((child) => {
|
||||
if (this.model === child.value) {
|
||||
if (child.label) {
|
||||
|
@ -518,6 +518,9 @@
|
|||
},
|
||||
mounted () {
|
||||
this.modelToQuery();
|
||||
this.$nextTick(() => {
|
||||
this.broadcastQuery('');
|
||||
});
|
||||
|
||||
this.updateOptions(true);
|
||||
document.addEventListener('keydown', this.handleKeydown);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue