Skip to content

Conversation

@smhigley
Copy link
Contributor

@smhigley smhigley commented Jan 30, 2025

Added an RFC for the stopPropagation vs. preventDefault question for the escape key, kicked off by a question from OWA.

The goal is also to get documentation into our storybook if we keep the preventDefault approach, both to have something we can refer to, and to give teams a heads up that they need to handle it themselves.

(cc/ @bsunderhus)

@github-actions github-actions bot added the Type: RFC Request for Feedback label Jan 30, 2025
@github-actions
Copy link

github-actions bot commented Jan 31, 2025

📊 Bundle size report

✅ No changes found

@github-actions
Copy link

Pull request demo site: URL

- Interop with v8, v0, the HTML `<dialog>` element, and other non-Fluent controls
- No way to opt out of stopping propagation for escape

## Open Issues
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:
Also good to mention: when we used to have stopPropagation prior to #29262, every once in a while we would have to pair with some lost engineer on TMP side that didn't know why the click handler doesn't work when a dialog/popover is closed.

- Follows the most common established pattern
- Interop with v8, v0, the HTML `<dialog>` element, and other non-Fluent controls
- No way to opt out of stopping propagation for escape

Copy link
Contributor

@bsunderhus bsunderhus Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Higher level actors on the page might lose information as we're stopping the emission of an event. There were cases where this was affecting telemetry tools for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: RFC Request for Feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants