Add role and aria-readonly attributes to single selection dropdown selected value
This commit is contained in:
parent
edf1ba17cb
commit
e1cda22475
2
src/js/select2/selection/single.js
vendored
2
src/js/select2/selection/single.js
vendored
@ -16,7 +16,7 @@ define([
|
|||||||
$selection.addClass('select2-selection--single');
|
$selection.addClass('select2-selection--single');
|
||||||
|
|
||||||
$selection.html(
|
$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">' +
|
'<span class="select2-selection__arrow" role="presentation">' +
|
||||||
'<b role="presentation"></b>' +
|
'<b role="presentation"></b>' +
|
||||||
'</span>'
|
'</span>'
|
||||||
|
Loading…
Reference in New Issue
Block a user