Explorar el Código

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

Michal Kleiner hace 8 años
padre
commit
e1cda22475
Se han modificado 1 ficheros con 1 adiciones y 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>'