fix(react-combobox): close controlled dropdown by clicking outside#31786
Merged
dmytrokirpa merged 19 commits intoJun 28, 2024
Merged
Conversation
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | virtual-rerender-with-unmount | 84 | 80 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 625 | 640 | 5000 | |
| Button | mount | 308 | 301 | 5000 | |
| Field | mount | 1146 | 1113 | 5000 | |
| FluentProvider | mount | 702 | 712 | 5000 | |
| FluentProviderWithTheme | mount | 87 | 79 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 30 | 33 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 84 | 80 | 10 | Possible regression |
| MakeStyles | mount | 869 | 860 | 50000 | |
| Persona | mount | 1770 | 1735 | 5000 | |
| SpinButton | mount | 1389 | 1339 | 5000 | |
| SwatchPicker | mount | 1643 | 1669 | 5000 |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
dmytrokirpa
marked this pull request as ready for review
June 21, 2024 15:02
Contributor
|
I think storybook example should be adjusted with focus, in controlled case it's not automatically focused, so later key navigation is not possible and when hitting ESC it's not closing 🙂 |
dmytrokirpa
force-pushed
the
fix-controlled-dropdown-close-on-click-outside
branch
from
June 22, 2024 08:02
a56c576 to
ccd6d2c
Compare
Contributor
Author
Nice catch, thank you @mainframev. I've added focus management to new stories. |
dmytrokirpa
commented
Jun 23, 2024
ling1726
reviewed
Jun 24, 2024
ling1726
reviewed
Jun 24, 2024
dmytrokirpa
force-pushed
the
fix-controlled-dropdown-close-on-click-outside
branch
from
June 24, 2024 09:04
6280ff7 to
6c1bc6a
Compare
dmytrokirpa
force-pushed
the
fix-controlled-dropdown-close-on-click-outside
branch
from
June 25, 2024 07:58
2a7ebce to
a67c6f5
Compare
marcosmoura
self-requested a review
June 25, 2024 11:34
marcosmoura
reviewed
Jun 25, 2024
marcosmoura
approved these changes
Jun 25, 2024
ling1726
approved these changes
Jun 25, 2024
mainframev
approved these changes
Jun 25, 2024
spmonahan
reviewed
Jun 25, 2024
spmonahan
approved these changes
Jun 25, 2024
dmytrokirpa
force-pushed
the
fix-controlled-dropdown-close-on-click-outside
branch
from
June 28, 2024 10:22
9bcf3c6 to
a5bc691
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Previous Behavior
Controlled dropdown & combobox cannot get dismissed by clicking outside
New Behavior
Controlled dropdown & combobox get dismissed by clicking outside
Related Issue(s)