Skip to content
Discussion options

You must be logged in to vote

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 -

{
            /* id: "STARTDATE_FIELD", */
            Header: "startDate",
            /* accessor: (d) => d.startDate, */
            accessor: "startDate",
            Cell: (c) => {
              /* console.log("c", c); */
              return (
                <span>
                  <input
                    type="date"
                    id="birthday"
                    name="birthday"
                    **defaultValue={c.value}**
                    **onChange={(e) => {
                      updateMyData(
 …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vishwa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant