Open shakibamoshiri opened 4 years ago
If you provide value
then you take control of the input. Similar to plain <input>
s within react. At that point, you have to listen for changes via onChange
and set the value when it changes.
The easy thing to do is just want for the defaults to load before showing the form.
is there any way to update form when model update? @TheSharpieOne
is there any way to update form when model update? @TheSharpieOne
Did u find a solution for this.
We dont have a solution for this?
Hi, thanks for developing and maintaining this repo
When using
AvForm
the value of the form is set using themodel={defaultValues}
right? When the state is updated, how can we update the value of the from? I think it is set the first time and once. Am I wrong?So I have to do something like this.
if I do not use
value={defaultValues.title}
then the value is not updated after usingcomponentDidMount