Skip to content

Conversation

andrewbeckman
Copy link

@andrewbeckman andrewbeckman commented Apr 19, 2019

Right now, the sortable list only updates its layout if the new data's length is larger than the previous data. On deletion, the sortable list should still update its layout.

Also, I added and documented the functionality to pass keyboardShouldPersistTaps through to the scroll view.

@andrewbeckman
Copy link
Author

I dropped a comment on PR #139, but it seems this bug was introduced when that was merged.

@andrewbeckman andrewbeckman changed the title Support deleting data from the list Support deleting data from the list & add support for keyboardShouldPersistTaps prop Apr 19, 2019
Copy link

@VietQuoc VietQuoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrewbeckman Please check this

});
});

if (Object.keys(nextData).length > Object.keys(data).length) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be
if (Object.keys(nextData).length > Object.keys(data).length || Object.keys(nextData).length < Object.keys(data).length)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants