react-native-sortable-list icon indicating copy to clipboard operation
react-native-sortable-list copied to clipboard

Sorting list after updating data: error in _findRowUnderActiveRow

Open CocoJr opened this issue 6 years ago • 1 comments

Hi!

When i update the data and try to move an element to my list, i received an error:

TypeError: TypeError: TypeError: undefined is not an object (evaluating 'this.state.data.length')

This one is located under _findRowUnderActiveRow line 429.
I check my order and my list, all is good, when i add my element, is shown in the list. I also use redux for mapping reducer state to props and dispatch to update the data and order (all working, when i restart the application, the store is restored by redux, and it's work (the sorting too).

CocoJr avatar Sep 07 '18 21:09 CocoJr

To solve this issue, i have to add the element at the top of the list. When you add at the bottom, you have the given error.

Can we solve this issue ?

CocoJr avatar Sep 07 '18 23:09 CocoJr