saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
33.5k stars 1.28k forks source link

bug: Mobile browsers problems #1956

Closed JTorresConsulta closed 11 months ago

JTorresConsulta commented 1 year ago

What version of daisyUI are you using?

3.0.20

Describe your issue

1- Modal: not open on iOs mobile browsers 2- Online indicator: show a background square on iOs and Android browsers 3- Swap: show checkbox on iOs browsers

photo-2023-06-08-14-14-39

Other thing: How to trigger the drowdown close? For example, clicking in the button that opened.

Thanks.

What browsers are you seeing the problem on?

All browsers

Reproduction URL (optional)

https://codepen.io/JTorresConsulta/pen/dyQPXZo

saadeghi commented 1 year ago

I opened your Codepen Link on iOS and I can't see the issues:

Screenshot 2023-06-21 at 01 32 50

What iOS version are you using?

JTorresConsulta commented 1 year ago

D72B9301-D9ED-4C24-BDE7-9FF2A048F958

Keshavdulal commented 1 year ago

I can confirm the same issue on daisyui:3.1.1 across multiple ios mobile devices on Safari & Chrome. Not on iPad though. Not on Desktop Safari or Chrome either. Not on Desktop Safari and Chrome's Mobile view either.

I am using a Modal Component to signin/up and people see the following on their iPhones. This makes it very hard to debug/fix.

zuzy-dev commented 11 months ago

Any update on this?

I get the same using safrai on iPad/ios 14.4

zuzy-dev commented 11 months ago

<dialog>-element is not supported in iOS 14: https://www.lambdatest.com/web-technologies/dialog-support-on-safari-14

Refactor code to https://daisyui.com/components/modal/#method-2-using-a-hidden-checkbox-legacy or https://daisyui.com/components/modal/#method-2-using-a-hidden-checkbox-legacy