You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine expect the fact that the grids are overlapping with each other, and the w and h in data-grid prop do not work properly. (I had to set width and height in the component.)
I'm wondering what I have missed and how can I solve the problom.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello folks,
I have been trying to implement a custom child component following the document (use
forwardRef
).(https://github.com/react-grid-layout/react-grid-layout#custom-child-components-and-draggable-handles)
Everything works fine expect the fact that the grids are overlapping with each other, and the
w
andh
indata-grid
prop do not work properly. (I had to setwidth
andheight
in the component.)I'm wondering what I have missed and how can I solve the problom.
The reproduction on CodeSandbox: https://codesandbox.io/s/unruffled-tess-zq9c4o?file=/src/App.js
Any hints or suggestions are appreciated🙏.
Beta Was this translation helpful? Give feedback.
All reactions