Skip to content

Conversation

DRiFTy17
Copy link
Collaborator

@DRiFTy17 DRiFTy17 commented Apr 7, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

Current behavior inspects the composed path for interactive events on a list item (mousedown, click, and keydown) to look for specific elements within the path of elements that event took. Since the composed path contains ALL elements within the bubbling path, it could potentially match against elements we don't care about since it's outside the scope of the specific list item.

This change adds a new utility to capture only composed elements on an event path starting from a specific element. In this case we only care about direct children of the list item.

@DRiFTy17 DRiFTy17 requested a review from a team as a code owner April 7, 2025 19:32
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 added the patch Increment the patch version when merged label Apr 7, 2025
@DRiFTy17 DRiFTy17 merged commit 2bfd2f7 into main Apr 9, 2025
10 checks passed
@DRiFTy17 DRiFTy17 deleted the fix-list-item-event-handling branch April 9, 2025 15:29
Copy link
Contributor

github-actions bot commented Apr 9, 2025

🚀 PR was released in v3.8.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants