From e1c1c7fbbdc3f4061b213b62dc220adc9b71cd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Hern=C3=A1ndez?= Date: Tue, 19 Dec 2017 01:24:26 -0600 Subject: [PATCH] Fix #3271 #3290 #3255 Duplicate options when height is set or sticky extension is used --- src/extensions/filter-control/bootstrap-table-filter-control.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extensions/filter-control/bootstrap-table-filter-control.js b/src/extensions/filter-control/bootstrap-table-filter-control.js index d5ffae1d40..6ef5abff3e 100644 --- a/src/extensions/filter-control/bootstrap-table-filter-control.js +++ b/src/extensions/filter-control/bootstrap-table-filter-control.js @@ -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();