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
|
// Focus on input element after text is clear for better UX
|
||||||
inputElement.focus()
|
inputElement.focus()
|
||||||
|
|
||||||
|
this.$emit('clear')
|
||||||
},
|
},
|
||||||
|
|
||||||
handleActionIconChange: function() {
|
handleActionIconChange: function() {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue