Remove input event emitting to reset search field (#2108)

This commit is contained in:
vallode 2022-05-13 03:16:14 +02:00 committed by GitHub
parent e6cea365d3
commit b202ec85e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -139,10 +139,11 @@ export default Vue.extend({
this.inputData = ''
this.handleActionIconChange()
this.updateVisibleDataList()
this.$emit('input', this.inputData)
const inputElement = document.getElementById(this.id)
inputElement.value = ''
// Focus on input element after text is clear for better UX
const inputElement = document.getElementById(this.id)
inputElement.focus()
},