kendo-angular
kendo-angular copied to clipboard
[Switch] ExpressionChangedAfterItHasBeenCheckedError is thrown when associating with <label [for]>
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
- Create the Switch component.
- Associate the component with a label element.
- 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
Additional context The error is not thrown when using the Kendo UI for Angular Label: https://stackblitz.com/edit/angular-eict7x-usexra