Skip to content

Conversation

@tomasherceg
Copy link
Member

@tomasherceg tomasherceg commented Jan 1, 2026

I changed the behavior of the checkedValue binding for checkboxes in DotVVM (those with the checkedArrayContainsObservables binding).

When the checkbox is checked, and its checkedValue is updated, Knockout has updated the value in the checkedItems collection to keep the checkbox checked.
This doesn't work well when we use checkboxes in foreach bindings, for example, in combination with paging. When the user switches to another page, and memoization is used (the checkboxes will stay on the page, just getting the new checkedValue), we want to keep the checkedItems collection as it was, and have the checkboxes reflecting its state.

If someone needs the default Knockout behavior, they will need to replace the values in the checkedItems collection on their own (when changing the checkedValue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants