fixes #1057
This commit is contained in:
parent
67fb12dc9e
commit
45559654bc
@ -1361,6 +1361,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
// prevent duplicate queries against the same term
|
||||
if (initial !== true && lastTerm && equal(term, lastTerm)) return;
|
||||
|
||||
$.data(this.container, "select2-last-term", term);
|
||||
|
||||
// if the search is currently hidden we do not alter the results
|
||||
if (initial !== true && (this.showSearchInput === false || !this.opened())) {
|
||||
return;
|
||||
@ -1418,8 +1420,6 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
|
||||
this.resultsPage = 1;
|
||||
|
||||
$.data(this.container, "select2-last-term", term);
|
||||
|
||||
opts.query({
|
||||
element: opts.element,
|
||||
term: search.val(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user