-
Notifications
You must be signed in to change notification settings - Fork 945
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- Operating System: Darwin
- Node Version: v20.9.0
- Nuxt Version: 3.10.3
- CLI Version: 3.10.1
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: site, app, colorMode, imports, devtools, modules, runtimeConfig, ogImage, routeRules, security, supabase, tailwindcss, vite
- Runtime Modules: @nuxtjs/[email protected], @nuxt/[email protected], @pinia/[email protected], @nuxt/[email protected], [email protected], [email protected], @nuxt/[email protected], [email protected]
- Build Modules: -
Version
v2.14.1
Reproduction
https://stackblitz.com/edit/nuxt-ui-4bk2ee
Description
Using Select Menu with a default value of null or undefined is now broken. That's a common use-case for this type of field. It was broken with this recent commit: b9fe74b. The error seems to be coming from here: https://github.com/nuxt/ui/blame/dev/src/runtime/components/forms/SelectMenu.vue#L370. We might want to add a null check in there.
Additional context
No response
Logs
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working