mbraak / jqTree

Tree widget for jQuery
https://mbraak.github.io/jqTree/
Apache License 2.0
1.02k stars 177 forks source link

contextmenu event not working #63

Closed peterrus closed 12 years ago

peterrus commented 12 years ago

When using:

            // bind 'tree.click' event
            $('#pageTree').bind(
                'tree.click',
                function(event) {
                    // The clicked node is 'event.node'
                    var node = event.node;
                    alert(node.name);
                }
                );

The alert pops up, however when using

            // bind 'tree.contextmenu' event
            $('#pageTree').bind(
                'tree.contextmenu',
                function(event) {
                    // The clicked node is 'event.node'
                    var node = event.node;
                    alert(node.name);
                }
                );

No popup is shown and the browsers builtin contextmenu pops up. I am pretty sure I am doing nothing wrong, bug? (I see this behaviour in Chrome Version 21.0.1180.77 and Firefox 15)

I experience this behaviour in version v0.11 and v0.12 as well as the latest commit from github

mbraak commented 12 years ago

Thank you for finding this bug. It is now fixed in the dev branch.

peterrus commented 12 years ago

Thanks a lot!

On Wed, Aug 15, 2012 at 8:56 AM, Marco Braak notifications@github.comwrote:

Thank you for finding this bug. It is now fixed in the dev branch.

— Reply to this email directly or view it on GitHubhttps://github.com/mbraak/jqTree/issues/63#issuecomment-7749565.