Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] [question] disable internal state updates #1856

Open
Panguino opened this issue Jun 25, 2020 · 1 comment
Open

[feature] [question] disable internal state updates #1856

Panguino opened this issue Jun 25, 2020 · 1 comment
Labels
feature question questions from the community

Comments

@Panguino
Copy link

I would like to use the onEnd event to manage my own state, and then pass the new children back into the sortable object. I was just wondering if there is a way to prevent onEnd to change anything with the children. I would like to manually manage that, however it seems like my management and the sortable are both trying to update the children at the same time. I am trying to use this to create my own react component because the react-sortablejs has some issues that I am trying to work around.

@waynevanson
Copy link
Contributor

This library is designed extremely close to the DOM (closer than I'd like it to).
The way you want to do it isn't possible from what I know.

We'll probably try this in version 2 of Sortable, if that day ever comes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature question questions from the community
Projects
None yet
Development

No branches or pull requests

2 participants