Only generate result ids when the container has an id
This commit is contained in:
parent
cdfa0499f4
commit
72ae0da879
2
dist/js/select2.amd.full.js
vendored
2
dist/js/select2.amd.full.js
vendored
@ -998,7 +998,7 @@ define('select2/data/select',[
|
||||
data.children = children;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
if (data.id && this.container != null) {
|
||||
data._resultId = this.generateResultId(this.container, data);
|
||||
}
|
||||
|
||||
|
2
dist/js/select2.amd.js
vendored
2
dist/js/select2.amd.js
vendored
@ -998,7 +998,7 @@ define('select2/data/select',[
|
||||
data.children = children;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
if (data.id && this.container != null) {
|
||||
data._resultId = this.generateResultId(this.container, data);
|
||||
}
|
||||
|
||||
|
2
dist/js/select2.full.js
vendored
2
dist/js/select2.full.js
vendored
@ -10536,7 +10536,7 @@ define('select2/data/select',[
|
||||
data.children = children;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
if (data.id && this.container != null) {
|
||||
data._resultId = this.generateResultId(this.container, data);
|
||||
}
|
||||
|
||||
|
4
dist/js/select2.full.min.js
vendored
4
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/select2.js
vendored
2
dist/js/select2.js
vendored
@ -1427,7 +1427,7 @@ define('select2/data/select',[
|
||||
data.children = children;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
if (data.id && this.container != null) {
|
||||
data._resultId = this.generateResultId(this.container, data);
|
||||
}
|
||||
|
||||
|
2
dist/js/select2.min.js
vendored
2
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
2
src/js/select2/data/select.js
vendored
2
src/js/select2/data/select.js
vendored
@ -148,7 +148,7 @@ define([
|
||||
data.children = children;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
if (data.id && this.container != null) {
|
||||
data._resultId = this.generateResultId(this.container, data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user