Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Duplicate options when height is set or sticky extension is used
  • Loading branch information
djhvscf committed Dec 19, 2017
1 parent fa757c9 commit e1c1c7f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
};

var sortSelectControl = function (selectControl) {
selectControl = $(selectControl.get(selectControl.length - 1));
var $opts = selectControl.find('option:gt(0)');

$opts.sort(function (a, b) {
a = $(a).text().toLowerCase();
b = $(b).text().toLowerCase();
Expand Down

0 comments on commit e1c1c7f

Please sign in to comment.