1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Loading icon doesn't disappear when using tags with auto tokenization. fixes #1005

This commit is contained in:
Igor Vaynberg 2013-03-14 11:39:45 -07:00
parent b973b56cce
commit 86a8190080

View File

@ -1418,7 +1418,10 @@ the specific language governing permissions and limitations under the Apache Lic
var def; // default choice
// ignore a response if the select2 has been closed before it was received
if (!this.opened()) return;
if (!this.opened()) {
this.search.removeClass("select2-active");
return;
}
// save context, if any
this.context = (data.context===undefined) ? null : data.context;
@ -2308,6 +2311,7 @@ the specific language governing permissions and limitations under the Apache Lic
self.postprocessResults();
},
// multi
tokenize: function() {
var input = this.search.val();
input = this.opts.tokenizer(input, this.data(), this.bind(this.onSelect), this.opts);