how to make some checkboxes checked by default
<CheckboxGroupInput
source="my_junction_table"
choices={choices}
optionText={<KioskCheckbox />}
initialValue={[{ id: 4, checked: true }]} // don't work
defaultValue={[{ id: 4, checked: true }]} // don't work
options={{ checked: true }} // check all
optionValue="id"
/>
with
options={{ checked: true }}
all the checkboxes are checked
with
initialValue={[{ id: 4, checked: true, value: true }]}
defaultValue={[{ id: 4, checked: true }]}
nothing work, I've already see the doc and the code in react-admin repo, can't find anything about that.