Comboboxes now clear search text when selecting an option

This commit is contained in:
Thaum Rystra
2020-05-15 15:09:34 +02:00
parent 4478628200
commit db696574f5

View File

@@ -5,8 +5,9 @@
:error-messages="errors"
:value="safeValue"
:menu-props="{auto: true, lazy: true}"
:search-input.sync="searchInput"
box
@change="change"
@change="customChange"
@focus="focused = true"
@blur="focused = false"
>
@@ -22,5 +23,14 @@
export default {
mixins: [SmartInput],
data(){ return {
searchInput: '',
}},
methods: {
customChange(val){
this.change(val);
this.searchInput = '';
},
}
};
</script>