Skip to content
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: controlled popover open on focus #2825

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

dawid-klosowski-at-brainly
Copy link
Contributor

Added param to control the popover trigger on focus.

With "useFocus" on false, automatic visibility trigger on focus is disabled, but when focusing on element that triggers popover and press enter it will work as before.

Integration of controlled popover with the fix:

Screen.Recording.2024-12-16.at.17.54.13.mov

Before (focus changes to input of schoolbar but during first loading it triggers popover again):

Screen.Recording.2024-12-16.at.17.59.28.mov

On storybook all the states behave as before with 'useFocus' on default (unless focus + enter):

Screen.Recording.2024-12-17.at.08.57.00.mov

@dawid-klosowski-at-brainly dawid-klosowski-at-brainly merged commit abd0665 into master Dec 17, 2024
3 of 4 checks passed
@dawid-klosowski-at-brainly dawid-klosowski-at-brainly deleted the fix-popover-open-focus branch December 17, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants