Releases: JakeSidSmith/react-reorder
Releases · JakeSidSmith/react-reorder
Updated export
Changed how react-reorder is exported so that it works with more build tools
React 0.14 Support
- Update react-reorder to use ReactDOM
- Move React (and ReactDOM) to dev dependencies
Shared props
Allows devs to pass additional sharedProps
accessible inside all of the items in the list at this.props.sharedProps
.
This allows devs to add more advanced functionality / customisation.
Highlight dragged item
Apply the same selected
class to the dragged item
Highlight selected item
- If
item
===selected
then it's wrapper element gets the classselected
- If
selectedKey
is set then it will instead compare that key from both objects
Disable reordering
Disable reordering if disableReorder
is not falsey
Improve touch scrolling
- Ensure that after-scroll only happens if nothing is being dragged
- Lock scrolling directions if a lock (vertical / horizontal) is set
Fix root being undefined
If this
is undefined then root
is window
Props update fix
- Set state when new props recieved
Initial release
- Reorderable list
- List class
- List item class
- Touch events
- Synthetic clientX & clientY for touch events
- Callback / click functions
- Auto-scroll while dragging
- Smooth scroll on touch devices