-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Popover: use a11y hooks instead of HoCs #27707
Conversation
Size Change: -15 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
haha, duplicate of #27675 |
@youknowriad Oh, I didn't see. I'm happy you're trying this too. I don't think it can be done without wrapping the merged ref callback in |
Closing in favour of #27675 |
yes, what do yo think of the idea here #27710 still against it? |
Let's try and see if it works :) All that matters here is Popover using the hooks |
8d7f2df
to
ec34edf
Compare
focusOnMount ? focusReturnRef : null, | ||
focusOnMountRef, | ||
]; | ||
const mergedRefs = useCallback( mergeRefs( allRefs ), allRefs ); |
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.
useCallback
is necessary here, I'm getting e2e test failures otherwise.
Description
Replaces the constrained tabbing and focus return HoCs with the new hooks.
How has this been tested?
Screenshots
Types of changes
Checklist: