Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckBox state not updated correctly when using OnPush change detection strategy #4395

Open
mbechev opened this issue Sep 3, 2024 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Sep 3, 2024

Describe the bug
The CheckBox state is not updated correctly when using ChangeDetectionStrategy.OnPush.
The default <input kendoCheckBox type="checkbox" /> works correctly:

Screen.Recording.2024-09-03.at.9.24.05.mov

To Reproduce
Click Checkbox Component label to see the issue:

https://stackblitz.com/edit/angular-iha5sx

Expected behavior
The checkbox state needs to be updated as the default element, on each click.

Workaround

Bind the checkedState property of the Checkbox component using two-way binding:

<kendo-checkbox #checkedState [(checkedState)]="checkedValue"></kendo-checkbox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant