diff options
author | XhmikosR <xhmikosr@gmail.com> | 2015-12-24 11:29:09 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2015-12-24 11:29:09 +0300 |
commit | 7610ebae8305bbdf8db2efbcbd6f2cb185840c52 (patch) | |
tree | 01e54f2ec11fdb5c8e21742caf8cd8aa7e20647f | |
parent | ff793ef640a9dfc1d7b96d5ab0ae6c5da02c4068 (diff) | |
parent | 2f17dfca5302633c7e5158603b727778a2dc61e9 (diff) |
Merge pull request #790 from cvergne/fix-touchend-prevent
Only preventing touchend events for modals (Fix #768 / #779)
-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) }); }()); |