Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[VARDUMPER] Avoid propagating the click event outside the HTML dump #60065

Closed
@cesarreyes3

Description

@cesarreyes3

Symfony version(s) affected

All

Description

The click event is propagating to higher html nodes

How to reproduce

In some packages that use this renderer, when putting a click event on the parent that includes this dump, now when clicking on expand for arrays, the click event of the parent is also fired.

Possible Solution

Is it possible to add e.stopPropagation(); after e.preventDefault();?

Additional Context

It shouldn't be a breaking change

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions