Skip to content

Commit

Permalink
Continuing debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tramirez30 committed Dec 18, 2024
1 parent 71a8e78 commit 3e73d61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,14 @@ let isActive = (e) => {
} else {
closeDropdown();
}
optionSelected();
};

// Option function selected

let optionSelected = (e) => {
if (option) {
if (option.contains(e.target)) {
dropDown.classList.remove("is-active");
icon.classList = "fas fa-angle-down";
}
};
Expand All @@ -135,7 +137,6 @@ let optionSelected = (e) => {
let closeDropdown = () => {
dropDown.classList.remove("is-active");
icon.classList = "fas fa-angle-down";
optionSelected();
};

// Event Listener, runs Quote() after click
Expand Down

0 comments on commit 3e73d61

Please sign in to comment.