ui
ui copied to clipboard
USelectMenu: set unwanted value on close when `searchable` prop is enabled.
Environment
- Operating System: Darwin
- Node Version: v21.7.3
- Nuxt Version: 3.12.1
- CLI Version: 3.12.0
- Nitro Version: 2.9.6
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, ssr, site, modules, app, image, pages, colorMode, ui, runtimeConfig, hooks, build
- Runtime Modules: @vueuse/motion/[email protected], @tresjs/[email protected], [email protected], @nuxt/[email protected], @nuxt/[email protected], @vueuse/[email protected], @nuxtjs/[email protected]
- Build Modules: -
Version
v2.17
Reproduction
https://stackblitz.com/edit/nuxt-starter-6pitx9?file=package.json
Description
When searchable is enabled, if i open the select and then close it without choosing anything, it sets the first value as selected.
It may not be the intended behaviour, if it's not, i'd like to look into it.
Additional context
No response
Logs
No response
The bug can be reproduced on the components page. Here's a GIF for reference.
Have you solved it yet?
Have you worked in this issue? @emavitta @zhangZYBX
duplicate https://github.com/nuxt/ui/issues/1708