Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2015-12-24 11:29:09 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-12-24 11:29:09 +0300
commit7610ebae8305bbdf8db2efbcbd6f2cb185840c52 (patch)
tree01e54f2ec11fdb5c8e21742caf8cd8aa7e20647f
parentff793ef640a9dfc1d7b96d5ab0ae6c5da02c4068 (diff)
parent2f17dfca5302633c7e5158603b727778a2dc61e9 (diff)
Merge pull request #790 from cvergne/fix-touchend-prevent
Only preventing touchend events for modals (Fix #768 / #779)
-rw-r--r--js/modals.js2
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)
});
}());