@GiovanniEstrada
Posted
Congratulations, your website looks great. actually your solution is very efficient, I just have one question: Why do you use two event listeners for the same element? I think the code can be written in the same event listener. In my case I would use the event listener like this:
submitHandler.addEventListener("click", () => { modalOverlay.classList.toggle("hidden"); mainContainer.classList.toggle("hidden"); });
Your code works and it's pretty good, only this part caught my attention.
Marked as helpful
@neetauka
Posted
@GiovanniEstrada thank you so much. I will make changes right away