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

ExtDnd - generating errors when clicking/dragging outside of the area covered by the draggable items #405

Closed
Arantor opened this issue Mar 3, 2015 · 1 comment

Comments

@Arantor
Copy link

Arantor commented Mar 3, 2015

Two errors occur in ExtDnd if you have a container that is larger than the space required by the items in the list (in my case, I have two fancytrees in jQuery UI Tabs and have a fixed height, so I have space below the tree)

Firstly:

                    var node = $.ui.fancytree.getNode(event);
                    node.debug("Re-enable focus that was prevented by jQuery UI draggable.");

throws an error due to undefined property debug. This looks like it was fixed in 8480fa9 but for some reason doesn't seem to show up in -all or -all.min in the master repo.

Secondly:

            helper: function(event) {
                var $helper,
                    sourceNode = $.ui.fancytree.getNode(event.target),
                    $nodeTag = $(sourceNode.span);

The .span property is also undefined and throws an error every movement of the mouse while the mouse button is held down. Since the event isn't on a node, there's no span for it to target. I'm not sure of the innards enough to come up with a fix yet though.

@mar10
Copy link
Owner

mar10 commented Mar 3, 2015

Thanks. (The first fix #402 is not yet released.)

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

No branches or pull requests

2 participants