DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.07k stars 377 forks source link

Bug with drop and drag column group #3525

Closed armandkeller closed 2 years ago

armandkeller commented 2 years ago

I'm using ...

Current Behaviour

Since the update 3.0.0, when I want to drop and drag group columns with GroupingPanel and his properties containerComponent, emptyMessageComponent, there is a bug

Expected Behaviour

no bug when drop and drag with GroupingPanel and his properties containerComponent, emptyMessageComponent

note: with the 2.7.6 update, no problem

Steps to Reproduce

https://codesandbox.io/embed/intelligent-grass-hgj7h8?fontsize=14&hidenavigation=1&theme=dark

Screenshots

image image

Environment

Krijovnick commented 2 years ago

@armandkeller You need to pass the forwardedRef property to GroupPanel.Container:

...
containerComponent={({ children, forwardedRef }) => (
    <GroupingPanel.Container
          style={{ width: "auto", marginRight: "10px" }}
          children={children}
          forwardedRef={forwardedRef}
    />
)}
...

Unfortunately, this property is not included in the documentation. We will add it in the near future.

armandkeller commented 2 years ago

@Krijovnick Thank you very much :)