Skip to content

Commit

Permalink
Call ('input') in remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Oct 13, 2023
1 parent 398e839 commit 918db50
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export default {
methods: {
remove(item) {
this.searchFilters.splice(this.searchFilters.indexOf(item), 1)
const index = this.searchFilters.indexOf(item)
if (index !== -1) {
this.searchFilters.splice(index, 1)
this.$emit("input", this.searchFilters)
}
},
fetchData() {
this.error = null
Expand Down

0 comments on commit 918db50

Please sign in to comment.