telerik / kendo-angular

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

[Switch] ExpressionChangedAfterItHasBeenCheckedError is thrown when associating with <label> #4318

Open georgi-sla opened 1 month ago

georgi-sla commented 1 month ago

Describe the bug Currently, when the developer tries to associate the Switch component with the generic HTML label, an ExpressionChangedAfterItHasBeenCheckedError is thrown.

To Reproduce

  1. Create the Switch component.
  2. Associate the component with a label element.
  3. Open the console to see the error.

For further reference, please check out the following StackBlitz demo: https://stackblitz.com/edit/angular-eict7x-dduwfc

Expected behavior When associating the Switch component with the generic label element, no error should be thrown on the console.

Screenshots

image

Additional context The error is not thrown when using the Kendo UI for Angular Label: https://stackblitz.com/edit/angular-eict7x-usexra