Fixed single-select combobox not showing rules errors

This commit is contained in:
Stefan Zermatten
2022-03-05 16:30:53 +02:00
parent a19e7d0514
commit 7dcd0aeff2

View File

@@ -32,25 +32,21 @@
searchInput: '',
}},
computed: {
// This component gets a longer default debounce time because it's all
// clicking no typing
// Multiple combobox gets a long default debounce time while single
// value gets a shorter one
debounceTime() {
if (Number.isFinite(this.debounce)){
return this.debounce;
} else if (Number.isFinite(this.context.debounceTime)){
return this.context.debounceTime;
} else {
return 1000;
return this.multiple ? 1000 : 100;
}
},
},
methods: {
customChange(val){
if (this.multiple){
this.input(val);
} else {
this.change(val);
}
this.input(val);
this.searchInput = '';
},
}