initialValue
defaultValue
props no longer work in edit views
#6198
Labels
initialValue
defaultValue
props no longer work in edit views
#6198
What you were expecting:
Just as it works in
Create
, inputs placed inside of aSimpleForm
inEdit
view, when they have ainitialValue
/defaultValue
prop, I'd expect that value to be used (if the initial value for the givensource
isnull
orundefined
).Currently, that default value is shown, but only for first ~10-50ms of form being rendered - and then is set back to
undefined
.Steps to reproduce:
Go to https://codesandbox.io/s/cranky-voice-psf4s . See that the default value is not respected in PostEdit view, but it is respected in PostCreate view.
Environment
The text was updated successfully, but these errors were encountered: