-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Menu trigger should be focused when menu is closed with keyboard #25165
Conversation
keyboard handling flag was only set when the key was `Tab` this is incorrect and the keyboard handling flag should be set every time the event is a keyboard event
.type('{esc}') | ||
.get(menuSelector) | ||
.should('not.exist') | ||
.get(menuTriggerSelector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These situations should now be caught with tests
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 8954cd0e856c4fdda7745f40d3c30916a6e24f6b (build) |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f199475:
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1266 | 1269 | 5000 | |
Button | mount | 930 | 908 | 5000 | |
FluentProvider | mount | 1509 | 1513 | 5000 | |
FluentProviderWithTheme | mount | 579 | 578 | 10 | |
FluentProviderWithTheme | virtual-rerender | 542 | 545 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 577 | 577 | 10 | |
MakeStyles | mount | 1962 | 1947 | 50000 | |
SpinButton | mount | 2389 | 2310 | 5000 |
* master: fix: Menu trigger should be focused when menu is closed with keyboard (microsoft#25165) fix(codemods): Do not fail on empty configMod config (microsoft#25148) fix: Field should have block layout, not inline (microsoft#25126) chore: Update Griffel to latest version (microsoft#25075)
…microsoft#25165) * fix: Menu trigger should be focused when menu is closed with keyboard keyboard handling flag was only set when the key was `Tab` this is incorrect and the keyboard handling flag should be set every time the event is a keyboard event * changefile
#25016 missed out on a crucial condition.
keyboard handling flag was only set when the key was
Tab
this is incorrect and the keyboard handling flag should be set every time the event is a keyboard event