This is a migrated thread and some comments may be shown as answers.

Disabled button bug?

2 Answers 66 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Miroslav
Top achievements
Rank 1
Miroslav asked on 19 Apr 2021, 08:45 AM
Hello, I found some strange behaviour of RadTolBar buttons when disabled by the disable() method. The button is greyed out but still responds to clicking with focus highlight, which will stay until the control is reloaded. You can test it even on the ToolBar demo at https://demos.telerik.com/aspnet-ajax/toolbar/examples/overview/defaultcs.aspx. Just disable a button from the developer console, for example the "Send" one with $find("ctl00_ContentPlaceholder1_RadToolBar1").findItemByText("Send").disable() and then try to click it. Is this behaviour expected or is it a bug? Our customers get confused by it.

2 Answers, 1 is accepted

Sort by
0
Miroslav
Top achievements
Rank 1
answered on 19 Apr 2021, 10:17 AM
For the time being I managed to hide the focus highlight on disabled buttons with CSS.
0
Rumen
Telerik team
answered on 21 Apr 2021, 05:11 PM

Hi Miroslav, 

Thank you for the great question!

The disabled buttons should be focusable mainly due to accessibility requirements and the screen readers. If your customer gets confused, just remove the focusing as you have already done with CSS and this is perfectly fine.

 

Best Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ToolBar
Asked by
Miroslav
Top achievements
Rank 1
Answers by
Miroslav
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or