nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.4k stars 374 forks source link

On mobile device can't click inside items of modal if multiple are open #1746

Open CyberCowboy404 opened 2 weeks ago

CyberCowboy404 commented 2 weeks ago

Environment

Version

2.15.2

Reproduction

https://stackblitz.com/edit/nuxt-ui-pqemsg?file=app.vue

Description

Weird behavior with modals on mobile devices(with tap event) When I have modal opened with prevent-close attr, I cannot click anything inside modal. In element inspection I notice that touch-action: auto; adds to clicked elements.

Initially I noticed this bug on my project. By default I have modal opened on the page with prevent close attr, and when I opened another modal, on mobile devices the actions inside second modal were blocked. But during creation of reproduction, I've noticed that button don't respond even in the first modal(on mobile device)

I was able to fix it(in my project), by closing the first modal. But it's weird because on desktops everything works fine

Additional context

No response

Logs

No response