Declined
Last Updated: 29 Sep 2021 11:31 by ADMIN
Ferry
Created on: 22 Sep 2021 13:56
Category: Date/Time Pickers
Type: Bug Report
0
The html input element for the DatePicker component, gets 2 role attributes; one with "datepicker" and one with "combobox"

This can be reproduced on your demo page. If you inspect the input element there, you'll see this:

I would expect this element to only have the role="datepicker" and not the role="combobox". This caused an issue for us, because we use this attribute to check some things in our javascript code.

1 comment
ADMIN
Nikolay
Posted on: 29 Sep 2021 11:31

Hi Ferry v.d. Graaf,

This is not a bug but rather purposely implemented to be so. The role attribute of the DatePicker is combobox as this is the closest role attribute as per WAI-ARIA to the datepicker role.  The WAI-ARIA accessibility specification does not expose a datepicker role.

You can use the data-role attribute that is of type datepicker to reference the datepicker input.

Hope this clarifies the situation.

Regards,


Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.