Skip to content

Commit

Permalink
update useCapture param for removeEventListener to match addEventList…
Browse files Browse the repository at this point in the history
…ener
  • Loading branch information
zeezo887 committed Nov 1, 2024
1 parent 53f59c3 commit 2b960d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/js/components/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
if (!this.active) return
clearTimeout(this.timer)
document.removeEventListener('click', this.closeFromDoc, true)
document.removeEventListener('touchend', this.closeFromDoc, true)
document.removeEventListener('click', this.closeFromDoc, false)
document.removeEventListener('touchend', this.closeFromDoc, false)
if (this.fixed) {
window.removeEventListener('scroll', this.closeFromDoc, true)
Expand Down

0 comments on commit 2b960d5

Please sign in to comment.