CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 488 forks source link

actionMapping mouse dblClick has stopped working #949

Open richlaughlin opened 1 year ago

richlaughlin commented 1 year ago

Minimal reproduction of the bug/regression with instructions:

actionMapping: IActionMapping = {
        mouse: {
            contextMenu: (tree, node, evt) => {
                evt.preventDefault();

                this.onContextMenu(node);

            },
            dblClick: (tree, node, evt) => {
              //Collapse Node
                if (node.parent.data.id != undefined) {
                    node.parent.collapse();
                    node.parent.setIsActive(true);
                }

            },
        },
    };

Expected behavior:

Double click to collapse node. From the code above, contextMenu fires correctly, dblClick previously collapsed the node but the dblClick event is no longer firing when user double clicks on tree node

Versions of Angular Tree Component, Angular, Node, affected browser(s) and operating system(s):

"@circlon/angular-tree-component": "^11.0.4", Angular 14.2.6 Node 16.17.0 Chrome Version 106.0.5249.119 Firefox 106.0 Windows 11

Other information:

I would be willing to submit a PR to fix this issue

[ ] No

richlaughlin commented 1 year ago

No reply in 53 days. Have CirclonGroup abandoned the Angular Tree Component?