mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2025-01-19 07:49:59 +01:00
clear filter in userplaylists and history when clicked "clear input" (#2349)
This commit is contained in:
parent
a6e898f47f
commit
63442282a9
@ -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() {
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user