Skip to content

Commit

Permalink
Remove { passive: true } from touchstart listener
Browse files Browse the repository at this point in the history
This was causing an error:

    Unable to preventDefault inside passive event listener invocation.

Essentially reverts #478.

Related to #475, #477, #479
  • Loading branch information
simonewebdesign authored Nov 24, 2021
1 parent 1eb33d0 commit c21cfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const MicroModal = (() => {
}

addEventListeners () {
this.modal.addEventListener('touchstart', this.onClick, { passive: true })
this.modal.addEventListener('touchstart', this.onClick)
this.modal.addEventListener('click', this.onClick)
document.addEventListener('keydown', this.onKeydown)
}
Expand Down

0 comments on commit c21cfa6

Please sign in to comment.