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 –
Problematic display –
The menu is open but not displayed outside of the parent. please help me how to resolve this issue.
2
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.
overflow: hidden
Add an overflow: visible to the parent (seems to be a <table> element in your case) and that popup will work as expected
overflow: visible
<table>
Click here to cancel reply.
2
Answers
It seems like the menu is being displayed inside an element with
overflow: hidden
applied. Consider removing theoverflow: hidden
from the parent element, or move the menu outside theoverflow: hidden
element by using a portal.Add an
overflow: visible
to the parent (seems to be a<table>
element in your case) and that popup will work as expected