kendo-angular icon indicating copy to clipboard operation
kendo-angular copied to clipboard

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

Open georgi-sla opened this issue 8 months ago • 0 comments

Describe the bug Currently, when the developer tries to associate the Switch component with the <label [for]> element (matching the KendoLabel directive), 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 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

georgi-sla avatar May 29 '24 07:05 georgi-sla