Fixed single-select combobox not showing rules errors
This commit is contained in:
@@ -32,25 +32,21 @@
|
|||||||
searchInput: '',
|
searchInput: '',
|
||||||
}},
|
}},
|
||||||
computed: {
|
computed: {
|
||||||
// This component gets a longer default debounce time because it's all
|
// Multiple combobox gets a long default debounce time while single
|
||||||
// clicking no typing
|
// value gets a shorter one
|
||||||
debounceTime() {
|
debounceTime() {
|
||||||
if (Number.isFinite(this.debounce)){
|
if (Number.isFinite(this.debounce)){
|
||||||
return this.debounce;
|
return this.debounce;
|
||||||
} else if (Number.isFinite(this.context.debounceTime)){
|
} else if (Number.isFinite(this.context.debounceTime)){
|
||||||
return this.context.debounceTime;
|
return this.context.debounceTime;
|
||||||
} else {
|
} else {
|
||||||
return 1000;
|
return this.multiple ? 1000 : 100;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
customChange(val){
|
customChange(val){
|
||||||
if (this.multiple){
|
this.input(val);
|
||||||
this.input(val);
|
|
||||||
} else {
|
|
||||||
this.change(val);
|
|
||||||
}
|
|
||||||
this.searchInput = '';
|
this.searchInput = '';
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user