From 70e70a1025cc5ea375a8a6c98adb5f00947b6738 Mon Sep 17 00:00:00 2001 From: qkdreyer Date: Mon, 1 Jun 2015 11:24:10 +0200 Subject: [PATCH] Fix Github Issue #768 : Only preventing touchend events for modals --- js/modals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modals.js b/js/modals.js index 21bc112..d721396 100644 --- a/js/modals.js +++ b/js/modals.js @@ -47,6 +47,6 @@ modal.dispatchEvent(eventToDispatch); modal.classList.toggle('active'); } - event.preventDefault(); // prevents rewriting url (apps can still use hash values in url) + if (modal) event.preventDefault(); // prevents rewriting url (apps can still use hash values in url) }); }());