Loading icon doesn't disappear when using tags with auto tokenization. fixes #1005
This commit is contained in:
parent
b973b56cce
commit
86a8190080
@ -1418,7 +1418,10 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
var def; // default choice
|
var def; // default choice
|
||||||
|
|
||||||
// ignore a response if the select2 has been closed before it was received
|
// 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
|
// save context, if any
|
||||||
this.context = (data.context===undefined) ? null : data.context;
|
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();
|
self.postprocessResults();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// multi
|
||||||
tokenize: function() {
|
tokenize: function() {
|
||||||
var input = this.search.val();
|
var input = this.search.val();
|
||||||
input = this.opts.tokenizer(input, this.data(), this.bind(this.onSelect), this.opts);
|
input = this.opts.tokenizer(input, this.data(), this.bind(this.onSelect), this.opts);
|
||||||
|
Loading…
Reference in New Issue
Block a user