fix issue with custom selects incorrectly classed "active"
This commit is contained in:
parent
e8ba77d56a
commit
6b5003cffe
@ -185,7 +185,8 @@ $(document).ready(function() {
|
|||||||
// Show/Hide the dropdown when clicking the custom input
|
// Show/Hide the dropdown when clicking the custom input
|
||||||
$selected.on("click", function(event) {
|
$selected.on("click", function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
$('.corbz-select-dropdown').not($dropdown).hide();
|
$(".corbz-select-dropdown").not($dropdown).hide();
|
||||||
|
$(".corbz-select-container").not($container).removeClass("active");
|
||||||
$dropdown.toggle();
|
$dropdown.toggle();
|
||||||
$container.toggleClass("active", $dropdown.is(":visible"));
|
$container.toggleClass("active", $dropdown.is(":visible"));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user