In Development
Last Updated: 11 Mar 2025 09:10 by ADMIN
Scheduled for 2025 Q2 (May)
Ken
Created on: 11 Mar 2025 08:54
Category: ComboBox
Type: Bug Report
0
AMP: This element has a mismatch between the value of its readonly and aria-readonly attributes - RadComboBox

Accessibility Management Platform (AMP) reports that the Telerik Web Forms ComboBox has an attribute mismatch

This element has a mismatch between the value of its readonly and aria-readonly attributes

 

The following structure replicates the error

<telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Empty Message" EnableAriaSupport="true">
    <Items>
        <telerik:RadComboBoxItem Text="Item 1" />
        <telerik:RadComboBoxItem Text="Item 2" />
        <telerik:RadComboBoxItem Text="Item 3" />
        <telerik:RadComboBoxItem Text="Item 4" />
    </Items>
</telerik:RadComboBox>

 

1 comment
ADMIN
Attila Antal
Posted on: 11 Mar 2025 09:05

Hi Ken,

Thank you for reporting the problem. I think we will be able to fix this issue and ship it with the next release. Until then, you may use the workaround below.

Workaround

Add the following script on the page where the Combo is located. Must be placed after the ScriptManager declaration.

<script>
    Sys.Application.add_load(function () {
        var combo =  $find("<%= RadComboBox1.ClientID %>");

        $(combo.get_inputDomElement()).attr('aria-readonly', combo.get_readOnly());
    });  
</script>

 

Regards,
Attila Antal
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!