equivalent change action on collection of checkboxes
greghawk opened this issue · 0 comments
greghawk commented
I have a collection of checkbox controls with the model set to NAME[]. If I don't add a change action then it all works fine but once I do I can't get it to save the values without some kind of change or xor call. xor gets me close but add two elements to the array. Is there a way I should be doing this?
What is the equivalent of a change event/action for a collection of checkboxes?
model={`test[]`}
text={choice.label}
value={choice.value}
changeAction={(model, value) => (dispatch, getState) => {
dispatch(actions.xor(model, value));
}}