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

[Popover] Disable focus management when opened via hover #855

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Nov 22, 2024

@atomiks atomiks added the component: popover The React component. label Nov 22, 2024
@@ -69,22 +68,21 @@ export function usePopoverRoot(params: usePopoverRoot.Parameters): usePopoverRoo
(nextOpen: boolean, event?: Event, reason?: OpenChangeReason) => {
onOpenChange(nextOpen, event, reason);
setOpenUnwrapped(nextOpen);
if (!keepMounted && !nextOpen) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to check how setMounted(false) with this keepMounted check operates now for the other components with the hidden prop

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like keepMounted was never passed to the hooks, hence it worked like keepMounted=false. I've removed the prop for Popover but it should be done for all components.

@mui-bot
Copy link

mui-bot commented Nov 22, 2024

Netlify deploy preview

https://deploy-preview-855--base-ui.netlify.app/

Generated by 🚫 dangerJS against 720db60

@atomiks atomiks marked this pull request as ready for review November 22, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: popover The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants