Skip to content

actionMapping mouse dblClick has stopped working #949

@richlaughlin

Description

@richlaughlin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions