Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CyberCowboy404 opened this issue May 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CyberCowboy404
Copy link

CyberCowboy404 commented May 4, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.9.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.0.0
  • Builder: -
  • User Config: app, runtimeConfig, stripe, devtools, modules, gtag, supabase, imports, i18n, colorMode, vue, vite
  • Runtime Modules: @nuxtjs/i18n@8.3.1, @nuxtjs/supabase@1.2.1, @nuxt/ui@2.15.2, nuxt-svgo@4.0.0, nuxt-lodash@2.5.3, nuxt-gtag@2.0.5, @nuxtjs/google-fonts@3.2.0, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0, @nuxt/image@1.6.0, @vueuse/nuxt@10.9.0, @unlok-co/nuxt-stripe@3.0.0
  • Build Modules: -

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

@CyberCowboy404 CyberCowboy404 added the bug Something isn't working label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant