-
-
Notifications
You must be signed in to change notification settings - Fork 369
[combobox][autocomplete] Fix popup closing on iOS VoiceOver #3859
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
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
c495211 to
1b7ac49
Compare
Greptile OverviewGreptile SummaryRemoves an unnecessary complexity introduced in PR #3654 by reverting to a simpler
Confidence Score: 5/5
Important Files Changed
|
LukasTy
left a comment
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.
This seems to regress the Popover closing when navigating forward with Tab on Firefox.
Like on the previous PR, with this change it closes Popovers only when doing backwards navigation (Shift + Tab).
Is it possible to fix both? 🤔
Besides, given that this has regressed, do you think it's possible to write a test cover this behavior?
That's not really possible because it's not touching anything to do with Popover. I tested and it's sometimes broken but is flaky. After refreshing several times it doesn't happen anymore. I think that's the flake issue with React's hydration You can confirm by looking in the console on the
The focus guards are only broken when that error appears in the console, but you can't see it in the deploy preview.
It's pretty tightly related to real screen reader operation with how it skips over |
LukasTy
left a comment
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.
Thanks for checking.
Indeed, I can confirm that if the console doesn't log the error, navigation works as expected on Firefox as well. 👌
As for the test - if we can't think of a way to test it outside of iOS, then I don't any more nitpicks.
Great work.

This change was added as part of #3654, but it's not necessary following the changes in
FloatingFocusManagerin later commits of the PR.This fixes the popup closing (input outside popup pattern) when swiping onto an option