Replies: 1 comment
-
eventually found a bug in my own code, thus closed:) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, i have an event handler that I want to run when I click a row and I have attached that to onCellClick: clicking row at any cell will start that eventhandler
So far so good, but when I console log my list of rows as the first thing in my eventHandler, I can see that data grid always appends the row that I have clicked to the topmost item of that list, replacing the original topmost item in the list completely. So after this the list contains that clicked row data twice: as the topmost item and at it's correct psotion where I clicked the row in the first place. This rows array that I'm looking at is the array i have passed to grid as "rows" prop. This happens even if my eventHandler would be completely empty and containing only the console logs to debug this situation. I have also checked that there are no redux store updates happening: redux store contains the original rows and only the component that is using data grid has updated rows from the data grid., This happens everytime, always the row that I have clicked last, will get put on top of the list by data grid.
Is this a bug, or a feature and would there be chance to toggle this off? I don't want data grid to change that array at all. That array is derived from redux selectors and should not be directly manipulated. At the moment I'm not sure if I'm able to continue using the data grid if it works like this.
7.0.0-beta.43
Beta Was this translation helpful? Give feedback.
All reactions