-
I have columns named Start Date and End Date which would include cells with prefilled dates and when date is changed - I am expecting the state to change but the same is not happpening . Codesandbox - https://codesandbox.io/s/upbeat-breeze-hyodx Code for date part -
If I remove value={c.value} in the above code , date can be changed on the frontend but state is not getting updated So there are 2 issues -
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My bad For the first issue I just replaced value with defaultValue . Changed code -
|
Beta Was this translation helpful? Give feedback.
My bad
For the first issue I just replaced value with defaultValue .
For the second issue I added onChange to my input and called updateMyData in onChange .
Changed code -