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

Hides Popover when its trigger is scrolled out of view #5318

Merged
merged 7 commits into from Jan 12, 2021

Conversation

jschuler
Copy link
Collaborator

@jschuler jschuler commented Jan 8, 2021

What: Closes #5317
Also adds a new prop to FocusTrap preventScrollOnDeactivate which, when set to true prevents from scrolling back on deactivation. A related issue: #5240

Also prevents FocusTrap from attempting to scroll back to the Popover trigger when deactivated

Demo
https://youtu.be/o7aV_68zc2U

Example code
https://pastebin.com/kuVNKy4g

@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 8, 2021

Copy link
Contributor

@redallen redallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

@tlabaj tlabaj self-assigned this Jan 11, 2021
Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @jschuler !

@redallen redallen merged commit 1bc1318 into patternfly:master Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popover should be hidden when its trigger is not in view
5 participants