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
In 2.1.2 the className which is added to each GridItem, along with 'dragging' or 'disabled' is no longer functioning due to a jumbled ternary
This can be seen by taking the codesandbox demo from this repo's README, and bumping the react-grid-dnd version number up to 2.1.2, then inspect the div element wrapping each grid item (as seen here). You will see that the div now has a className of 'undefined', and when dragging, the 'dragging' class is not appended
I have created a pull request #28 with an example fix for this.
The text was updated successfully, but these errors were encountered:
Issue is still present, easy to fix
you need to add parenthesis because className conditional statement clears out content that is added before it.
GridItem.tsx line 143
In 2.1.2 the className which is added to each GridItem, along with 'dragging' or 'disabled' is no longer functioning due to a jumbled ternary
This can be seen by taking the codesandbox demo from this repo's README, and bumping the react-grid-dnd version number up to 2.1.2, then inspect the div element wrapping each grid item (as seen here). You will see that the div now has a className of 'undefined', and when dragging, the 'dragging' class is not appended
![image](https://user-images.githubusercontent.com/13721965/102195711-d8f77c80-3eb6-11eb-84ba-f52d4c33060d.png)
I have created a pull request #28 with an example fix for this.
The text was updated successfully, but these errors were encountered: