Skip to content

Type Issue with Select Component #4019

@Anton-Plagemann

Description

@Anton-Plagemann

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.1.0

Reproduction

https://codesandbox.io/p/devbox/epic-smoke-95wysw?file=%2Fapp%2Fpages%2Findex.vue

Description

Using the @update:model-value event handler produces type errors with the Select component, starting from nuxt-ui v3.1.0 (v3.0.2 works fine).

Image

Additional context

No response

Logs

Type 'boolean | AcceptableValue | undefined' is not assignable to type '"yes" | "no"'.
  Type 'undefined' is not assignable to type '"yes" | "no"'.ts-plugin(2322)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions