selected item lost the selected class #29

Open
arielbottero opened this Issue Oct 30, 2015 · 1 comment

Projects

None yet

2 participants

Contributor

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

Owner

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