-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[core] fix(Popover): 'lazy' support; add tests for 'shouldReturnFocusOnClose' #6579
Conversation
update docs exampleBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
address self-reviewBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
@@ -290,18 +346,6 @@ describe("<Popover>", () => { | |||
autoFocus: false, | |||
}); | |||
}); | |||
|
|||
it("popover remains open after target focus if autoFocus={true}", () => { |
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 test doesn't really make sense since autoFocus
is disabled for "hover" popovers. it should be removed. see code:
const defaultAutoFocus = this.isHoverInteractionKind() ? false : undefined; |
remove invalid testBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Checklist
Changes proposed in this pull request:
lazy
prop support forPopover
(the component was never forwarding that prop toOverlay
)shouldReturnFocusOnClose
behavior, illustrating that this requiresopenOnTargetFocus={false}
andshouldReturnFocusOnClose={true}
to be setshouldReturnFocusOnClose
demo to docs exampleReviewers should focus on:
Unit test behavior
Screenshot