I have a checkbox from material-ui that doesn't fire onCheck event.
<Checkbox
label="label"
onCheck={onCheck}
checked={currentDocument.ispublic}
/>
function onCheck() {
currentDocument.ispublic = !currentDocument.ispublic;
console.log("onCheck");
}
I tried removing checked property as described in this question: React Checkbox not sending onChange
currentDocument is an observable object stored in my store.