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: disable shouldReturnFocusOnClose for hover interactions #4914

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

adidahiya
Copy link
Contributor

Fixes #4912

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

  • Disable shouldReturnFocusOnClose for hover interaction Popover & Popover2 (and transitively, Tooltip & Tooltip2)
  • Address an edge case in handleTargetBlur which ignored focus returning to the popover element itself
  • Update docs around popover + tooltip composition to highlight a usage edge case

Reviewers should focus on:

Fixes the linked bug

Screenshot

2021-09-16 14 26 04

@blueprint-bot
Copy link

[core,popover2] fix: disable shouldReturnFocusOnClose for hover interactions

Previews: documentation | landing | table

@adidahiya adidahiya merged commit 49a2a46 into develop Sep 16, 2021
@adidahiya adidahiya deleted the ad/fix-hover-popover-return-on-close branch September 16, 2021 18:35
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.

Popover with hover interaction opens and closes infinitely when opened via tab focus
2 participants