fixes #1504 - undo changes made to labels during init
This commit is contained in:
parent
86fe603082
commit
852784dd3f
14
select2.js
14
select2.js
@ -1864,6 +1864,13 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
this.focusser.focus();
|
||||
},
|
||||
|
||||
// single
|
||||
destroy: function() {
|
||||
$("label[for='" + this.focusser.attr('id') + "']")
|
||||
.attr('for', this.opts.element.attr("id"));
|
||||
this.parent.destroy.apply(this, arguments);
|
||||
},
|
||||
|
||||
// single
|
||||
initContainer: function () {
|
||||
|
||||
@ -2404,6 +2411,13 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
}
|
||||
},
|
||||
|
||||
// multi
|
||||
destroy: function() {
|
||||
$("label[for='" + this.search.attr('id') + "']")
|
||||
.attr('for', this.opts.element.attr("id"));
|
||||
this.parent.destroy.apply(this, arguments);
|
||||
},
|
||||
|
||||
// multi
|
||||
initContainer: function () {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user