Skip to content

Commit

Permalink
Fixed dropdown issue on isActive, now dropdown closes if user clicks …
Browse files Browse the repository at this point in the history
…anywhere on the screen
  • Loading branch information
tramirez30 committed Dec 16, 2024
1 parent d6e29a3 commit cb5ab78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ document.querySelector("#getQuote-btn").addEventListener("click", quote);
document.querySelector("#clear-btn").addEventListener("click", clearQuote);

// Toggle dropdown state
document.querySelector(Window).addEventListener("click", isActive);
window.addEventListener("click", isActive);

// If there is no value in the input field, don't display card

Expand Down

0 comments on commit cb5ab78

Please sign in to comment.