From c21cfa60a6d434681c7c190534cefc7588767a18 Mon Sep 17 00:00:00 2001 From: Simone Vittori Date: Wed, 24 Nov 2021 16:30:40 +0000 Subject: [PATCH] Remove { passive: true } from touchstart listener This was causing an error: Unable to preventDefault inside passive event listener invocation. Essentially reverts https://github.com/ghosh/Micromodal/pull/478. Related to #475, #477, #479 --- lib/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/index.js b/lib/src/index.js index 7a93da8..3a1b8cc 100644 --- a/lib/src/index.js +++ b/lib/src/index.js @@ -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) }