Skip to content

Commit

Permalink
feat: cancel search buffer on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 10, 2021
1 parent 18a17cc commit ebc53dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/pages/posts/navigation/search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ export default {
},
addSearchTagDirectly(tag) {
// Reset current search buffer
this.fetchSearchDataFromApi('')
const prefix = this.isBanModeEnabled ? '-' : ''
this.mergeSearchTags([prefix + tag])
Expand Down

0 comments on commit ebc53dc

Please sign in to comment.