tailwindlabs / tailwindui-issues

A place to report bugs discovered in Tailwind UI.
235 stars 4 forks source link

Native select dropdown, dropdown options not opening below select component #1615

Closed pedreviljoen closed 2 months ago

pedreviljoen commented 2 months ago

What component (if applicable)

Describe the bug The native select component on mobile renders the options dropdown list at a strange place, not under the select component. Replicated on the tailwind UI components site as well.

To Reproduce Steps to reproduce the behavior: Implement the native select input component with options, view that component on mobile viewport and click on the select component.

Expected behavior Expected the select options to appear on top of or below the dropdown like below screenshot:

Screenshot 2024-07-24 at 15 38 27

Screenshots Screenshot 2024-07-24 at 15 30 14

Browser/Device (if applicable)

reinink commented 2 months ago

Hey! Thanks for letting us know about this.

I'm curious, are you seeing this behavior on a real mobile device, or just when using Chrome DevTools? (That's the only place I am able to reproduce this issue.)

Here's what I see in Chrome on my iPhone:

IMG_DD495C07CFB0-1

reinink commented 2 months ago

Hey! Going to close this one for now because I'm 99% sure this is just an issue with DevTools and not something that will actually happen on a real device. Please let me know if that isn't the case though. Thanks! 🤙