Skip to content

Commit 4555965

Browse files
committed
fixes select2#1057
1 parent 67fb12d commit 4555965

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,8 @@ the specific language governing permissions and limitations under the Apache Lic
13611361
// prevent duplicate queries against the same term
13621362
if (initial !== true && lastTerm && equal(term, lastTerm)) return;
13631363

1364+
$.data(this.container, "select2-last-term", term);
1365+
13641366
// if the search is currently hidden we do not alter the results
13651367
if (initial !== true && (this.showSearchInput === false || !this.opened())) {
13661368
return;
@@ -1418,8 +1420,6 @@ the specific language governing permissions and limitations under the Apache Lic
14181420

14191421
this.resultsPage = 1;
14201422

1421-
$.data(this.container, "select2-last-term", term);
1422-
14231423
opts.query({
14241424
element: opts.element,
14251425
term: search.val(),

0 commit comments

Comments
 (0)