diff --git a/src/js/select2/selection/base.js b/src/js/select2/selection/base.js index 96702b2917..ee292f8d06 100644 --- a/src/js/select2/selection/base.js +++ b/src/js/select2/selection/base.js @@ -15,7 +15,7 @@ define([ BaseSelection.prototype.render = function () { var $selection = $( '' + + ' role="combobox" aria-haspopup="listbox" aria-expanded="false">' + '' ); @@ -60,10 +60,6 @@ define([ } }); - container.on('results:focus', function (params) { - self.$selection.attr('aria-activedescendant', params.data._resultId); - }); - container.on('selection:update', function (params) { self.update(params.data); }); @@ -79,7 +75,6 @@ define([ container.on('close', function () { // When the dropdown is closed, aria-expanded="false" self.$selection.attr('aria-expanded', 'false'); - self.$selection.removeAttr('aria-activedescendant'); self.$selection.removeAttr('aria-owns'); // This needs to be delayed as the active element is the body when the diff --git a/src/js/select2/selection/search.js b/src/js/select2/selection/search.js index 35df5aa375..78f9867c8c 100644 --- a/src/js/select2/selection/search.js +++ b/src/js/select2/selection/search.js @@ -12,7 +12,8 @@ define([ '