Browse Source

modal: fix touchend event always prevented

pull/790/head
Christophe VERGNE 10 years ago
parent
commit
2f17dfca53
  1. 2
      js/modals.js

2
js/modals.js

@ -46,7 +46,7 @@
} }
modal.dispatchEvent(eventToDispatch); modal.dispatchEvent(eventToDispatch);
modal.classList.toggle('active'); 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)
}); });
}()); }());

Loading…
Cancel
Save