Releases: patricktran/react-table-hoc-draggable-columns
1.3.2
Bugfix/Edge case - only call onDraggedColumnChange
when column ordering is changed in ReactTable. We do not want to call onDraggedColumnChange
if column order is changed outside of ReactTable... this may lead to an infinite loop depending on your use case.
Update eslint/prettier config
1.3.1
Maintenance release adding null checks
1.3.0
Refactor rendering process so that calling setState
inside onDraggedColumnChange
will not crash the HOC
onDraggedColumnChange
and onDropSuccess
callback method arguments refer to the original column instance and not the modified draggable instance
1.2.5
Remove scarf
1.2.4
Add scarf installation analytics
1.2.3
Bug fix that prevented onDraggedColumnChange from being called if columns dragged back to their original order
Bug fix for column re-ordering not working if any of the React Table columns have show: false defined
1.2.2
Bug fix that prevented sorting on a draggable column Bug fix for `enableColumnWideDrag` prop by adding css `display: inline-flex` when set to {false}
1.2.1
bug fix for converting htmlCollection to a js array
1.2.0
New prop onDropSuccess
callback to obtain column information and indexes for the ondrop event (probably more info than you want to know!)
Breaking Change: Headers are now wrapped by a div
rather than span
. This was necessary to support column.header defined as a component
1.1.6
Bug fix for reorder indicators flickering when dragleave event fired when hovering over a child element
Props for additional class names for reorder indicator up and reorder indicator down
Do not allow reorder indicators to appear outside X bounds of React Table (apparent when disableTableScroll={false})