Skip to content

Commit 86a8190

Browse files
committed
Loading icon doesn't disappear when using tags with auto tokenization. fixes select2#1005
1 parent b973b56 commit 86a8190

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

select2.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,10 @@ the specific language governing permissions and limitations under the Apache Lic
14181418
var def; // default choice
14191419

14201420
// ignore a response if the select2 has been closed before it was received
1421-
if (!this.opened()) return;
1421+
if (!this.opened()) {
1422+
this.search.removeClass("select2-active");
1423+
return;
1424+
}
14221425

14231426
// save context, if any
14241427
this.context = (data.context===undefined) ? null : data.context;
@@ -2308,6 +2311,7 @@ the specific language governing permissions and limitations under the Apache Lic
23082311
self.postprocessResults();
23092312
},
23102313

2314+
// multi
23112315
tokenize: function() {
23122316
var input = this.search.val();
23132317
input = this.opts.tokenizer(input, this.data(), this.bind(this.onSelect), this.opts);

0 commit comments

Comments
 (0)