CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)

Home Page:https://angular2-tree.readme.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actionMapping mouse dblClick has stopped working

richlaughlin opened this issue · comments

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

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