Skip to content

DropdownMenu inside TabPanel is displayed incorrectly #1264

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

Closed
Nureckiy opened this issue Oct 7, 2021 · 1 comment
Closed

DropdownMenu inside TabPanel is displayed incorrectly #1264

Nureckiy opened this issue Oct 7, 2021 · 1 comment
Labels
Milestone

Comments

@Nureckiy
Copy link

Nureckiy commented Oct 7, 2021

When placing a DropdownMenu inside a TabPanel, the open list is below the expected position and is truncated by the end of the tab content.

DropdownMenu_in_TabPanel

Desktop:

  • OS: Windows 10
  • Browser Chrome
  • Version 94.0.4606.71

The sandbox in which the problem is reproduced:
https://codesandbox.io/s/tabs-example-basic-usage-forked-nkz14?file=/src/Demo.jsx

Is there a way to get around this? Thanks in advance!

@Nureckiy Nureckiy added the bug label Oct 7, 2021
@mlaursen
Copy link
Owner

mlaursen commented Oct 8, 2021

Yeap! You can enable the portal prop on the DropdownMenu to fix this overflow issue. Updated sandbox: https://codesandbox.io/s/tabs-example-basic-usage-forked-psei7?file=/src/Demo.jsx

I actually can't remember why this is disabled by default for menus, so I might look into enabling it for the next major release.

@mlaursen mlaursen added this to the v4.0.0 milestone Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants