react-data-grid
react-data-grid copied to clipboard
grid-template-rows not updating after add a new row
Describe the bug
I'm using a simple array state to store my rows, I have a modal window that creates a new row to the grid, but when I do that the grid-template-rows under the grid don't update the repeat to the new length, this causes the UI to break.
To Reproduce
- Create a simple state
const [data, setData] = useState([])
- Try to insert a new row to this state
Environment
-
react-data-grid
version: 7.0.0-beta.12 -
react
/react-dom
version: 16.14.0 / 16.11.0
met the same
Possible duplicate of: https://github.com/adazzle/react-data-grid/issues/2956
Can you create a reproducible example? Also make sure you are not mutating rows and creating a new array instead.
Any solution to this. I'm trying to implement the Master-detail Grid and I would love to be able to add or delete rows at the Master Level.