|
@@ -1293,8 +1293,6 @@ S2.define('select2/selection/base',[
|
|
|
|
|
|
this.container = container;
|
|
this.container = container;
|
|
|
|
|
|
- this.$selection.attr('aria-owns', resultsId);
|
|
|
|
-
|
|
|
|
this.$selection.on('focus', function (evt) {
|
|
this.$selection.on('focus', function (evt) {
|
|
self.trigger('focus', evt);
|
|
self.trigger('focus', evt);
|
|
});
|
|
});
|
|
@@ -1322,6 +1320,7 @@ S2.define('select2/selection/base',[
|
|
container.on('open', function () {
|
|
container.on('open', function () {
|
|
// When the dropdown is open, aria-expanded="true"
|
|
// When the dropdown is open, aria-expanded="true"
|
|
self.$selection.attr('aria-expanded', 'true');
|
|
self.$selection.attr('aria-expanded', 'true');
|
|
|
|
+ self.$selection.attr('aria-owns', resultsId);
|
|
|
|
|
|
self._attachCloseHandler(container);
|
|
self._attachCloseHandler(container);
|
|
});
|
|
});
|
|
@@ -1330,6 +1329,7 @@ S2.define('select2/selection/base',[
|
|
// When the dropdown is closed, aria-expanded="false"
|
|
// When the dropdown is closed, aria-expanded="false"
|
|
self.$selection.attr('aria-expanded', 'false');
|
|
self.$selection.attr('aria-expanded', 'false');
|
|
self.$selection.removeAttr('aria-activedescendant');
|
|
self.$selection.removeAttr('aria-activedescendant');
|
|
|
|
+ self.$selection.removeAttr('aria-owns');
|
|
|
|
|
|
self.$selection.focus();
|
|
self.$selection.focus();
|
|
|
|
|
|
@@ -4201,6 +4201,7 @@ S2.define('select2/i18n/en',[],function () {
|
|
S2.define('select2/defaults',[
|
|
S2.define('select2/defaults',[
|
|
'jquery',
|
|
'jquery',
|
|
'require',
|
|
'require',
|
|
|
|
+
|
|
'./results',
|
|
'./results',
|
|
|
|
|
|
'./selection/single',
|
|
'./selection/single',
|