1
0
mirror of synced 2024-11-22 04:56:08 +03:00

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

This commit is contained in:
Michal Kleiner 2017-04-24 16:55:53 +12:00 committed by alexweissman
parent edf1ba17cb
commit e1cda22475

View File

@ -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>'