fix issue with custom selects incorrectly classed "active"

This commit is contained in:
Corban-Lee Jones 2024-10-29 19:04:45 +00:00
parent e8ba77d56a
commit 6b5003cffe

View File

@ -185,7 +185,8 @@ $(document).ready(function() {
// Show/Hide the dropdown when clicking the custom input
$selected.on("click", function(event) {
event.stopPropagation();
$('.corbz-select-dropdown').not($dropdown).hide();
$(".corbz-select-dropdown").not($dropdown).hide();
$(".corbz-select-container").not($container).removeClass("active");
$dropdown.toggle();
$container.toggleClass("active", $dropdown.is(":visible"));
});