Skip to content

Commit

Permalink
Fixing icon logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tramirez30 committed Dec 16, 2024
1 parent 1174890 commit 4da784f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ let isActive = (e) => {
// Toggles dropdown
dropDown.classList.toggle("is-active");
icon.classList = "fas fa-angle-up";
if (option.contains(e.target)) {
icon.classList = "fas fa-angle-down";
}
} else {
closeDropdown();
}
Expand Down

0 comments on commit 4da784f

Please sign in to comment.