We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67fb12d commit 4555965Copy full SHA for 4555965
1 file changed
select2.js
@@ -1361,6 +1361,8 @@ the specific language governing permissions and limitations under the Apache Lic
1361
// prevent duplicate queries against the same term
1362
if (initial !== true && lastTerm && equal(term, lastTerm)) return;
1363
1364
+ $.data(this.container, "select2-last-term", term);
1365
+
1366
// if the search is currently hidden we do not alter the results
1367
if (initial !== true && (this.showSearchInput === false || !this.opened())) {
1368
return;
@@ -1418,8 +1420,6 @@ the specific language governing permissions and limitations under the Apache Lic
1418
1420
1419
1421
this.resultsPage = 1;
1422
- $.data(this.container, "select2-last-term", term);
-
1423
opts.query({
1424
element: opts.element,
1425
term: search.val(),
0 commit comments