Skip to content

Commit

Permalink
Moved function inside isActive
Browse files Browse the repository at this point in the history
  • Loading branch information
tramirez30 committed Dec 16, 2024
1 parent 58f8843 commit f35e4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ let isActive = (e) => {
//Check to see if dropdown was selected
if (dropDown.contains(e.target)) {
// Toggles dropdown
optionSelected();

dropDown.classList.toggle("is-active");
icon.classList = "fas fa-angle-up";
} else {
closeDropdown();
}
optionSelected();
};

// Option function selected
Expand Down

0 comments on commit f35e4c5

Please sign in to comment.