Skip to content

Commit c21cfa6

Browse files
Remove { passive: true } from touchstart listener
This was causing an error: Unable to preventDefault inside passive event listener invocation. Essentially reverts micromodal#478. Related to micromodal#475, micromodal#477, micromodal#479
1 parent 1eb33d0 commit c21cfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const MicroModal = (() => {
116116
}
117117

118118
addEventListeners () {
119-
this.modal.addEventListener('touchstart', this.onClick, { passive: true })
119+
this.modal.addEventListener('touchstart', this.onClick)
120120
this.modal.addEventListener('click', this.onClick)
121121
document.addEventListener('keydown', this.onKeydown)
122122
}

0 commit comments

Comments
 (0)