|
@@ -12,7 +12,7 @@ define([
|
|
|
'<li class="select2-search select2-search--inline">' +
|
|
|
'<input class="select2-search__field" type="search" tabindex="-1"' +
|
|
|
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
|
|
|
- ' spellcheck="false" role="textbox" />' +
|
|
|
+ ' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
|
|
|
'</li>'
|
|
|
);
|
|
|
|
|
@@ -37,6 +37,7 @@ define([
|
|
|
|
|
|
container.on('close', function () {
|
|
|
self.$search.val('');
|
|
|
+ self.$search.removeAttr('aria-activedescendant');
|
|
|
self.$search.trigger('focus');
|
|
|
});
|
|
|
|
|
@@ -54,6 +55,10 @@ define([
|
|
|
self.$search.trigger('focus');
|
|
|
});
|
|
|
|
|
|
+ container.on('results:focus', function (params) {
|
|
|
+ self.$search.attr('aria-activedescendant', params.id);
|
|
|
+ });
|
|
|
+
|
|
|
this.$selection.on('focusin', '.select2-search--inline', function (evt) {
|
|
|
self.trigger('focus', evt);
|
|
|
});
|