Fixed Hash Override in Modal
This commit is contained in:
Родитель
e0e8bedd92
Коммит
f74025e294
|
@ -28,7 +28,10 @@
|
|||
|
||||
window.addEventListener('touchend', function (event) {
|
||||
var modal = getModal(event);
|
||||
if (modal) modal.classList.toggle('active');
|
||||
if (modal) {
|
||||
modal.classList.toggle('active');
|
||||
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
|
||||
}
|
||||
});
|
||||
}();/* ----------------------------------
|
||||
* POPOVER v1.0.0
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
window.addEventListener('touchend', function (event) {
|
||||
var modal = getModal(event);
|
||||
if (modal) modal.classList.toggle('active');
|
||||
if (modal) {
|
||||
modal.classList.toggle('active');
|
||||
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
|
||||
}
|
||||
});
|
||||
}();
|
Загрузка…
Ссылка в новой задаче