0

In this nested list example: http://jsfiddle.net/7e2gs/, the accept function on the droppable items is returning the expected value (false, when the droppable is a child item of the draggable).

However, the activeClass is being applied to all the droppables, not just the ones that had the accept function return true.

How do I get the activeClass to be applied only to the items that had the accept function return true?

1 Answer 1

0

The problem was with the "IsNotInsideSelf" function.

The returned variable of the function had the same name as the function and was causing the the accept function to behave as if it was not working.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.