Replies: 2 comments 1 reply
-
Hey, can you provide a small reproduction of this in CodeSandbox? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I realised that the onChange was causing a change in the props value to the component and that resulted in the spreadsheet component to get re-rendered. My bad. I should have updated this discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello:
I am trying to use this library to edit some data (using Next.js). I am facing the following errors:
If I use the controlled method of input viz. using
<Spreadsheet data={data} onChange={setData} />
I find that everytime I enter a value in a cell, I lose control of the focus viz. I need to press enter key again to enter the cell to edit.Is this the expected behaviour?
Alternatively, if I do not use the onChange prop and wish to retrieve the entire matrix (assume using a button) I am unable to figure out how to use the API to get the spreadsheet data.
I will appreciate any help that can point me in the right direction.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions