Skip to content

Commit

Permalink
Updating icon logic to switch to close
Browse files Browse the repository at this point in the history
  • Loading branch information
tramirez30 committed Dec 18, 2024
1 parent 67a484e commit e5fe5ee
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 @@ -117,7 +117,7 @@ let isActive = (e) => {
// Update icon to switch from up to down and vice versa
dropDown.classList.toggle("is-active");
icon.classList = "fas fa-angle-up";
if (option.contains(e.target)) {
if (e.target === option) {
icon.classList = "fas fa-angle-down";
}
} else {
Expand Down

0 comments on commit e5fe5ee

Please sign in to comment.