patricktran / react-table-hoc-draggable-columns

ReactTable HOC for draggable columns
https://patricktran.github.io/react-table-hoc-draggable-columns/
MIT License
28 stars 24 forks source link

Add property for determining whether columns should be reordered #27

Closed ds-martinso closed 3 years ago

ds-martinso commented 3 years ago

This is useful for edge cases where you need to handle a special reordering yourself. So I would for example use the onDropSuccess function to listen to a reorder, but then prevent the lib from doing the reorder so that I instead can do my thing.

ds-martinso commented 3 years ago

The second commit is a small fix for unnecessary TypeError spams in Firefox, when dragging columns.