ui
ui copied to clipboard
Input date hide calendar in watch onSubmit
Environment
- Operating System: Darwin
- Node Version: v21.7.3
- Nuxt Version: 3.16.2
- CLI Version: 3.24.1
- Nitro Version: 2.11.8
- Package Manager: [email protected]
- Builder: -
- User Config: extends, components, devtools, googleFonts, modules, runtimeConfig, compatibilityDate, typescript, build, vite, devServer, app, colorMode, spaLoadingTemplate, bugsnag
- Runtime Modules: @nuxtjs/[email protected], @nuxt/[email protected], [email protected], @nuxt/[email protected]
- Build Modules: -
Is this bug related to Nuxt or Vue?
Nuxt
Version
3.0.2
Reproduction
https://codesandbox.io/p/devbox/mutable-fire-gyhkmt
Description
If date value is watch and send form.value.submit to btn.value.click() it makes the calendar hide and the user has to click it again.
Additional context
For instance, in this code, the native input can continue using the calendar in btnSubmit.value?.click(); but the UInput hidde the calendar each time that function is called.
https://github.com/user-attachments/assets/ac3931d1-1bec-4df9-b666-dc840ee7bd37
Logs