I copy and pasted the first Tailwind UI header component on this page
into a new Next.js Code Sandbox. On desktop view the product dropdown menu opens and closes fine.
But when I added text to the page. When you open the product menu and click outside any area it won't close.