autocomplete & form reset

This commit is contained in:
bkfox
2022-03-20 11:59:51 +01:00
parent 17512d14b8
commit 65a6c9f90c
3 changed files with 23 additions and 18 deletions

View File

@ -155,6 +155,11 @@ export default {
data => {this.isFetching = false; Promise.reject(data)})
},
},
mounted() {
const form = this.$el.closest('form')
form.addEventListener('reset', () => { this.value=''; this.select(-1) })
}
}
</script>