Merge pull request #3705 from tzellman/stable/3.5
Fix broken tags, #3695
This commit is contained in:
commit
2b8cbde7eb
@ -1023,14 +1023,14 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
|
|
||||||
// data-select2-tags -> data-tags
|
// data-select2-tags -> data-tags
|
||||||
if (opts.element.data('tags') != null) {
|
if (opts.element.data('tags') != null) {
|
||||||
var tags = opts.element.data('tags');
|
var elemTags = opts.element.data('tags');
|
||||||
|
|
||||||
// data-tags should actually be a boolean
|
// data-tags should actually be a boolean
|
||||||
if (!$.isArray(tags)) {
|
if (!$.isArray(elemTags)) {
|
||||||
tags = [];
|
elemTags = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
opts.element.data('select2Tags', tags);
|
opts.element.data('select2Tags', elemTags);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sortResults -> sorter
|
// sortResults -> sorter
|
||||||
|
Loading…
Reference in New Issue
Block a user