telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
463 stars 213 forks source link

It is not possible disable an input without also disabling its adornments. #4320

Closed adavs6533 closed 1 month ago

adavs6533 commented 1 month ago

Describe the bug Calling the form control disable() method on an input with adornments also disables the adornments.

To Reproduce Call disable() on a form control with adornments. Observe the result. (The adornments also become disabled.)

Expected behavior Expect the adornments to remain enabled, given what the example/code here would seem to imply (it also does not work): https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments/#toc-disabling-adornments

Browser

slavenai commented 1 month ago

Hi @adavs6533 ,

The previous behavior is considered a bug, as the adornments are a constituent part of the component and are not expected to be functional when the component is disabled. As the buttons are not actually disabled but rather styled as such, the developer can apply custom styles to override the default ones, e.g.:

https://stackblitz.com/edit/angular-wgf8za-mbhu2h?file=src%2Fapp%2Fapp.component.ts

We will update our documentation accordingly and apologize for the caused inconvinience.