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

This commit is contained in:
bob1520 2022-06-24 21:53:00 +00:00 committed by GitHub
parent dd879b68c1
commit 4a5d091653
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
inputElement.focus()
this.$emit('clear')
},
handleActionIconChange: function() {

View File

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

View File

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