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

setting a connectedClass breaks dropping #161

Open
maz4focus opened this issue Apr 1, 2016 · 1 comment
Open

setting a connectedClass breaks dropping #161

maz4focus opened this issue Apr 1, 2016 · 1 comment

Comments

@maz4focus
Copy link

We have 2 arrays. You can drag items from one to the other if a condition is satisfied. The condition is checked in beforeMove; it it is not satisfied, cancelDrop will be set. Works fine.

If I set the connectedClass option on the first array, and specify this class in my css file,
the background of the table column that holds the array list, is now reformatted according
to the css. However, it's not possible to drop elements onto the 2nd array anymore.

The css class is simply:
.connectedSortable {
background:brown;
}

In my opinion, setting a css class should not change the behaviour of the page. Only javascript should change the behaviour.
what are we missing?

@rniemeyer
Copy link
Owner

@maz4focus - are you still having this issue? can you put together a jsfiddle or describe your code a bit more?

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

2 participants