Update select.vue
This commit is contained in:
parent
4e85fa156c
commit
7db4e70de2
1 changed files with 16 additions and 15 deletions
|
@ -496,7 +496,7 @@
|
|||
}
|
||||
},
|
||||
compiled () {
|
||||
this.modelToQuery()
|
||||
this.modelToQuery();
|
||||
|
||||
this.updateOptions(true);
|
||||
document.addEventListener('keydown', this.handleKeydown);
|
||||
|
@ -504,6 +504,7 @@
|
|||
// watch slot changed
|
||||
if (MutationObserver) {
|
||||
this.observer = new MutationObserver(() => {
|
||||
this.modelToQuery();
|
||||
this.slotChange();
|
||||
this.updateOptions(true, true);
|
||||
});
|
||||
|
@ -524,7 +525,7 @@
|
|||
},
|
||||
watch: {
|
||||
model () {
|
||||
this.modelToQuery()
|
||||
this.modelToQuery();
|
||||
if (this.multiple) {
|
||||
if (this.slotChangeDuration) {
|
||||
this.slotChangeDuration = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue