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:
authorChristophe VERGNE <christophe.vergne@gmail.com>2015-06-25 12:54:07 +0300
committerChristophe VERGNE <christophe.vergne@gmail.com>2015-06-25 12:54:07 +0300
commit2f17dfca5302633c7e5158603b727778a2dc61e9 (patch)
tree7752beeeb2c14a78657e6d071b8ddce0747cc7fa
parent0b5d41fbacab7fe0a365872a783a1c808829caab (diff)
modal: fix touchend event always prevented
-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)
});
}());