react-smooth-draggable-list
react-smooth-draggable-list copied to clipboard
List order passed as a prop from parent component.
I am passing list order from a parent component and its rendering fine. But when it is dragged for reorder it give error.
Error:
main.js?293e:14 Uncaught TypeError: e.getOrder(...).indexOf is not a function
at eval (eval at
and on every move mouse movement on screen it gives:-
main.js?293e:14 Uncaught TypeError: f.indexOf is not a function
at n.handleMouseMove (eval at
My code is something like this:
<div className='screen-list'> <List rowHeight={70} order={this.props.workflowScreenOrder} onReOrder={order => this.screenOrderChange({order})}> {this.showScreenList()} </List> </div>