Skip to content

Commit

Permalink
change closeModalButton selector and use getElementById
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdikhashan committed Jun 5, 2024
1 parent 8fed76c commit 97c7d4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener("DOMContentLoaded", () => {
const searchInput = document.querySelector("input.search-input");
const modal = document.getElementById("modal");
const modalContent = modal.querySelector("#modal-content");
const closeModalButton = modal.querySelector("#modal-close");
const closeModalButton = document.getElementById("modal-close");

const openModal = (content) => {
modalContent.innerHTML = content;
Expand Down

0 comments on commit 97c7d4b

Please sign in to comment.