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
What you were expecting:
When I have a SimpleForm, every key/value couple that is present in the form must be present in the final object when submitting it
What happened instead:
For some kind of inputs : DateInput, SelectArrayInput, SelectInput, if the input has not been touched (is not dirty), the key is not present in the final object.
I tried to use parse, format, sanitizeEmptyValues, transformOptions, defaultValue, none of them worked. I don't know in which version the issue appeared but I know that it was working before.
When using a simple SelectInput like this one, if I'm not "touching" the input, the key doseIsCheck won't be present when submitting the form. I didn't customize any parent component like Create or SimpleForm. It's really boiler plate code
Environment
React-admin version: 6.5.4
Last version that did not exhibit the issue (if applicable): Hard to say :/
React version: 18
Browser: Safari
The text was updated successfully, but these errors were encountered:
yonitou
changed the title
Empty (null/undefined) properties are not submitted
Empty (null/undefined) properties are not submitted in SelectArrayInput, SelectInput, DateInput
Apr 16, 2025
What you were expecting:
When I have a SimpleForm, every key/value couple that is present in the form must be present in the final object when submitting it
What happened instead:
For some kind of inputs : DateInput, SelectArrayInput, SelectInput, if the input has not been touched (is not dirty), the key is not present in the final object.
I tried to use
parse
,format
,sanitizeEmptyValues
,transformOptions
,defaultValue
, none of them worked. I don't know in which version the issue appeared but I know that it was working before.Related code:
When using a simple
SelectInput
like this one, if I'm not "touching" the input, the keydoseIsCheck
won't be present when submitting the form. I didn't customize any parent component likeCreate
orSimpleForm
. It's really boiler plate codeEnvironment
The text was updated successfully, but these errors were encountered: