mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-01 07:08:16 +00:00
Adds preventDefault to modal js
This commit is contained in:
parent
8ad75084de
commit
ed93eda18d
|
@ -427,6 +427,8 @@ let BookWyrm = new (class {
|
|||
|
||||
// Helper functions
|
||||
function handleModalOpen(modalElement) {
|
||||
event.preventDefault();
|
||||
|
||||
htmlElement.classList.add("is-clipped");
|
||||
modalElement.classList.add("is-active");
|
||||
modalElement.getElementsByClassName("modal-card")[0].focus();
|
||||
|
|
Loading…
Reference in a new issue