You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the CheckboxGroupInput to apply my "labelPosition" or "onCheck" that I pass to it in the "options" prop. What happened instead:
I am attempting to use react-admin's input component: CheckboxGroupInput (https://marmelab.com/react-admin/Inputs.html#checkboxgroupinput). I wanted to overwrite the "labelPosition" to be left instead of right, however when I attempted to set this property it did not change the label position. I also wanted to overwrite the onCheck callback with my own custom callback, but ran into the same issue.
I was able to set the "checked" or "disabled" property to true in the options object, but it did not apply "labelPosition" or "onCheck" that I gave it.
Attempt to modify the "labelPosition" or "onCheck" in the CheckboxGroupInput. Steps to reproduce:
Attempt to pass your own "labelPosition" or "onCheck" in the CheckboxGroupInput options prop. Related code:
I think the issue here is not with the code, but with documentation.
Example code in docs of options props shows and links to the latest documentation of Material UI’s <Checkbox> component, instead, it should link to the version (1.5.1) used by react-admin.
What you were expecting:
I would expect the CheckboxGroupInput to apply my "labelPosition" or "onCheck" that I pass to it in the "options" prop.
What happened instead:
I am attempting to use react-admin's input component: CheckboxGroupInput (https://marmelab.com/react-admin/Inputs.html#checkboxgroupinput). I wanted to overwrite the "labelPosition" to be left instead of right, however when I attempted to set this property it did not change the label position. I also wanted to overwrite the onCheck callback with my own custom callback, but ran into the same issue.
I was able to set the "checked" or "disabled" property to true in the options object, but it did not apply "labelPosition" or "onCheck" that I gave it.
Attempt to modify the "labelPosition" or "onCheck" in the CheckboxGroupInput.
Steps to reproduce:
Attempt to pass your own "labelPosition" or "onCheck" in the CheckboxGroupInput options prop.
Related code:
Other information:
I recently added the checkout check in , and the behavior was the same for CheckboxGroupInput outside of this recently added change.
Environment
The text was updated successfully, but these errors were encountered: