Explorar o código

Add role and aria-readonly attributes to single selection dropdown selected value

Michal Kleiner %!s(int64=8) %!d(string=hai) anos
pai
achega
e1cda22475
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/js/select2/selection/single.js

+ 1 - 1
src/js/select2/selection/single.js

@@ -16,7 +16,7 @@ define([
     $selection.addClass('select2-selection--single');
 
     $selection.html(
-      '<span class="select2-selection__rendered"></span>' +
+      '<span class="select2-selection__rendered" role="textbox" aria-readonly="true"></span>' +
       '<span class="select2-selection__arrow" role="presentation">' +
         '<b role="presentation"></b>' +
       '</span>'