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

Using droppable next to a sortable #187

Open
derrickb opened this issue May 20, 2017 · 0 comments
Open

Using droppable next to a sortable #187

derrickb opened this issue May 20, 2017 · 0 comments

Comments

@derrickb
Copy link

I have a setup where I have a droppable adjacent to a sortable, both bindings provided by knockout-sortable, and both bound to the same observables. My UI is sort of like a file explorer where the sortable section has a header/handle above it which is a droppable target.

I need the sortable drop to be canceled if the item is hovering over the droppable element. However, since the item is close enough to the sortable to be dropped there, both appear to try to accept the item which results in duplicate entries being pushed to the observable array.

Any tips on how to handle this situation? Searches on google turn up possible solutions for a plain jQuery approach, but in my case it isn't enough to account for just the nodes themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant