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

DND focusOnClick option is ignored for tables, if 'dnd' extension is listed after 'table' extension #489

Closed
mar10 opened this issue Aug 24, 2015 · 0 comments

Comments

@mar10
Copy link
Owner

mar10 commented Aug 24, 2015

In this case, the focusOnClick option is ignored:

        $("#tree").fancytree({
            extensions: ["dnd", "edit", "glyph", "table"],
            checkbox: true,
            dnd: {
                focusOnClick: true,
                dragStart: function(node, data) { return true; },
                dragEnter: function(node, data) { return true; },
                dragDrop: function(node, data) { data.otherNode.copyTo(node, data.hitMode); }
            },

while this extension order does work:

        $("#tree").fancytree({
            extensions: ["edit", "glyph", "table", "dnd"],
            checkbox: true,
            ...
@mar10 mar10 closed this as completed in fb6de17 Aug 24, 2015
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