Skip to content

Context menu doesn't close when stopPropagation() is called on a click event. #34

@Timmeeeey

Description

@Timmeeeey

Describe the bug
When you open a context menu and click somewhere where stopPropagation() is called on the click event, then the context menu doesn't close.

To Reproduce
Steps to reproduce the behavior:

  1. Open context menu.
  2. Click on the blue area.

Expected behavior
The context menu should always close when clicking outside the menu.

Stackblitz Example
https://stackblitz.com/edit/ngx-contextmenu-example-zas2j8

2023-12-18_15h49_51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions