Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #59292 [WebProfilerBundle] Fix event delegation on links inside t…
…oggles (MatTheCat) This PR was merged into the 6.4 branch. Discussion ---------- [WebProfilerBundle] Fix event delegation on links inside toggles | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT In #57525, the security panel’s authenticator tab got updated with dumps in toggles. Issue is, we currently call `stopPropagation` when link are clicked to avoid closing the toggle, but dumps handle links click using event delegation. That means when you click on a `sf-dump-toggle`, the event cannot reach the `sf-dump` because its propagation is stopped. This PR handles this case by checking if a link is present in the DOM between the toggle and the element which was clicked. It also leverages the `currentTarget` property to get the clicked toggle. Commits ------- 241597d2d47 [WebProfilerBundle] Fix event delegation on links inside toggles
- Loading branch information