selected item lost the selected class #29
You may open a PR to make the things easier? Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may open a PR to make the things easier? Thanks |
To fix replace
selectOptions.not($target).removeClass("selected");
for
if($target[0].tagName.toUpperCase()=="LI") { selectOptions.not($target).removeClass("selected"); }
in jquery.dropdown.js line 298
Add this code
$option.addClass("selected");
after
$option.attr("selected", true); in jquery.dropdown.js line 350