Siddharta Maity
Siddharta Maity

Reputation: 77

Headless UI Tailwind Menu display issue

I am using Tailwind with Headless UI for my react project. I am having a display issue for Headless UI Menu as shown i the below images -

Correct display -

enter image description here

Problematic display -

enter image description here

The menu is open but not displayed outside of the parent. please help me how to resolve this issue.

Upvotes: 0

Views: 1750

Answers (3)

John Peet
John Peet

Reputation: 55

We ended up using from https://headlessui-float.vercel.app/ and wrapped around the MenuButton and Items, this will solve the overflow issue. However, we haven't solved the scroll into screen issue as it hasn't been a requirement for us

Upvotes: 0

Mechanic
Mechanic

Reputation: 5380

Add an overflow: visible to the parent (seems to be a <table> element in your case) and that popup will work as expected

Upvotes: 0

Wongjn
Wongjn

Reputation: 24303

It seems like the menu is being displayed inside an element with overflow: hidden applied. Consider removing the overflow: hidden from the parent element, or move the menu outside the overflow: hidden element by using a portal.

Upvotes: 0

Related Questions