diff --git a/src/renderer/components/ft-input/ft-input.js b/src/renderer/components/ft-input/ft-input.js index f4fb14c9..98d2afae 100644 --- a/src/renderer/components/ft-input/ft-input.js +++ b/src/renderer/components/ft-input/ft-input.js @@ -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() { diff --git a/src/renderer/views/History/History.vue b/src/renderer/views/History/History.vue index 9703421c..4b6e6424 100644 --- a/src/renderer/views/History/History.vue +++ b/src/renderer/views/History/History.vue @@ -16,6 +16,7 @@ :show-clear-text-button="true" :show-action-button="false" @input="(input) => query = input" + @clear="query = ''" />