DataTable: crash during third party drag and drop handling #3376
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
Drag and drop can potentially crash, when using third party helpers like React DnD, which attach handlers at top of DOM.
Reproducer
https://codesandbox.io/s/primereact-test-forked-p1ho5f
PrimeReact version
8.6.1
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Cannot read properties of null (reading 'style')
Note that that the reproducer is simplified version of what happens when using third party drag and drop handling.
Expected behavior
When columnReordering is not active, DataTable should not interfere with drag and drop events.
The text was updated successfully, but these errors were encountered: