Skip to content

Commit

Permalink
Add role and aria-readonly attributes to single selection dropdown se…
Browse files Browse the repository at this point in the history
…lected value
  • Loading branch information
michalkleiner authored and alexweissman committed Oct 26, 2017
1 parent edf1ba1 commit e1cda22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/selection/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
Expand Down

0 comments on commit e1cda22

Please sign in to comment.