Skip to content

Commit 4b9e02f

Browse files
committed
Corrected check for opening the dropdown
This corrects the check that was used when the dropdown was opened, so the results would be immediately rendered instead of delaying the loading. Previously it would delay the immediate load but immediately load the results when the search term was emptied. This closes select2#4191 This closes select2#4192 This closes select2#4202
1 parent 481c438 commit 4b9e02f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/select2/data/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ define([
9494
self._request = $request;
9595
}
9696

97-
if (this.ajaxOptions.delay && params.term !== '') {
97+
if (this.ajaxOptions.delay && params.term != null) {
9898
if (this._queryTimeout) {
9999
window.clearTimeout(this._queryTimeout);
100100
}

0 commit comments

Comments
 (0)