Merge pull request #2883 from hughrun/modal-fix

Ensure report button triggers modal
This commit is contained in:
Mouse Reeve 2023-07-15 19:58:36 -07:00 committed by GitHub
commit 61037cf38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,9 +40,6 @@ let BookWyrm = new (class {
document.querySelectorAll("details.dropdown").forEach((node) => {
node.addEventListener("toggle", this.handleDetailsDropdown.bind(this));
node.querySelectorAll("[data-modal-open]").forEach((modal_node) =>
modal_node.addEventListener("click", () => (node.open = false))
);
});
document