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

[Menu] Resetting the anchor doesn't reattach the menu to its trigger #1353

Open
michaldudak opened this issue Jan 23, 2025 · 0 comments
Open
Labels
bug 🐛 Something doesn't work component: menu This is the name of the generic UI component, not the React module!

Comments

@michaldudak
Copy link
Member

When the Menu.Positioner's anchor prop is set to a custom element and then reset to undefined, the popup appears in the corner of the viewport instead of being attached to the trigger.

Reproduction steps:

  1. Open https://deploy-preview-1330--base-ui.netlify.app/experiments/menu-fully-featured
  2. Open settings and check "Custom anchor"
  3. Open and close the menu
  4. Uncheck "Custom anchor"
  5. Open the menu - it will not appear next to the trigger, as it should
20250123-1114-24.3480764.mp4
@michaldudak michaldudak added bug 🐛 Something doesn't work component: menu This is the name of the generic UI component, not the React module! labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: menu This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

1 participant