Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/binding/defaultBindings/checked.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ ko.bindingHandlers['checked'] = {
// When we're responding to the checkedValue changing, and the element is
// currently checked, replace the old elem value with the new elem value
// in the model array.
if (isChecked) {
if (isChecked
// we want to suppress this behavior in DotVVM - it will applies only to non-DotVVM checkboxes
&& !allBindings['has']('checkedArrayContainsObservables')
) {
ko.utils.addOrRemoveItem(writableValue, elemValue, true, checkedArrayContainsObservables, checkedValueComparer);
ko.utils.addOrRemoveItem(writableValue, saveOldValue, false, checkedArrayContainsObservables, checkedValueComparer);
}
Expand Down