clear filter in userplaylists and history when clicked "clear input" (#2349)

This commit is contained in:
bob1520 2022-06-24 21:53:17 +00:00 committed by GitHub
parent a6e898f47f
commit 63442282a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,8 @@ export default Vue.extend({
// Focus on input element after text is clear for better UX // Focus on input element after text is clear for better UX
inputElement.focus() inputElement.focus()
this.$emit('clear')
}, },
handleActionIconChange: function() { handleActionIconChange: function() {

View File

@ -16,6 +16,7 @@
:show-clear-text-button="true" :show-clear-text-button="true"
:show-action-button="false" :show-action-button="false"
@input="(input) => query = input" @input="(input) => query = input"
@clear="query = ''"
/> />
<ft-flex-box <ft-flex-box
v-show="fullData.length === 0" v-show="fullData.length === 0"

View File

@ -23,6 +23,7 @@
:show-clear-text-button="true" :show-clear-text-button="true"
:show-action-button="false" :show-action-button="false"
@input="(input) => query = input" @input="(input) => query = input"
@clear="query = ''"
/> />
<ft-flex-box <ft-flex-box
v-show="fullData.length === 0" v-show="fullData.length === 0"