diff options
author | Christophe VERGNE <christophe.vergne@gmail.com> | 2015-06-25 12:54:07 +0300 |
---|---|---|
committer | Christophe VERGNE <christophe.vergne@gmail.com> | 2015-06-25 12:54:07 +0300 |
commit | 2f17dfca5302633c7e5158603b727778a2dc61e9 (patch) | |
tree | 7752beeeb2c14a78657e6d071b8ddce0747cc7fa | |
parent | 0b5d41fbacab7fe0a365872a783a1c808829caab (diff) |
modal: fix touchend event always prevented
-rw-r--r-- | js/modals.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modals.js b/js/modals.js index 21bc112..db4f5bc 100644 --- a/js/modals.js +++ b/js/modals.js @@ -46,7 +46,7 @@ } modal.dispatchEvent(eventToDispatch); modal.classList.toggle('active'); + event.preventDefault(); // prevents rewriting url (apps can still use hash values in url) } - event.preventDefault(); // prevents rewriting url (apps can still use hash values in url) }); }()); |