diff --git a/js/main.js b/js/main.js index a9a6efb..59c8130 100644 --- a/js/main.js +++ b/js/main.js @@ -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