|
@@ -78,8 +78,8 @@ define([
|
|
|
|
|
|
// Hide the original select
|
|
// Hide the original select
|
|
$element.addClass('select2-hidden-accessible');
|
|
$element.addClass('select2-hidden-accessible');
|
|
- $element.attr('aria-hidden', 'true');
|
|
|
|
-
|
|
|
|
|
|
+ $element.attr('aria-hidden', 'true');
|
|
|
|
+
|
|
// Synchronize any monitored attributes
|
|
// Synchronize any monitored attributes
|
|
this._syncAttributes();
|
|
this._syncAttributes();
|
|
|
|
|
|
@@ -491,7 +491,7 @@ define([
|
|
this.$element.attr('tabindex', this.$element.data('old-tabindex'));
|
|
this.$element.attr('tabindex', this.$element.data('old-tabindex'));
|
|
|
|
|
|
this.$element.removeClass('select2-hidden-accessible');
|
|
this.$element.removeClass('select2-hidden-accessible');
|
|
- this.$element.attr('aria-hidden', 'false');
|
|
|
|
|
|
+ this.$element.attr('aria-hidden', 'false');
|
|
this.$element.removeData('select2');
|
|
this.$element.removeData('select2');
|
|
|
|
|
|
this.dataAdapter.destroy();
|
|
this.dataAdapter.destroy();
|