Permalink
Browse files

Merge pull request #51 from Worldrider/patch-1

fix #35
2 parents 1a37034 + 5717998 commit a22ee6f8d5e6a8bfdcc71faa8b6c21d4c91fdca1 @FezVrasta committed on GitHub Oct 2, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 jquery.dropdown.js
View
@@ -106,7 +106,9 @@
selectors.push('li[value=' + val[i] + ']')
}
if (selectors.length > 0) {
- methods._select($dropdown, $dropdown.find(selectors.join(',')));
+ var $target = $dropdown.find(selectors.join(','));
+ $target.removeClass("selected");
+ methods._select($dropdown, $target);
}
}
@@ -208,7 +210,7 @@
}
methods._select($dropdown, $selected);
} else {
- methods._select($dropdown, $select.find(":selected"));
+ // methods._select($dropdown, $select.find(":selected"));
}
});

0 comments on commit a22ee6f

Please sign in to comment.