Skip to content

Disabled items in USelectMenu are still selectable #3474

@brenodanyel

Description

@brenodanyel

Environment

  • Operating System: Linux
  • Node Version: v20.17.0
  • Nuxt Version: 0.0.1
  • CLI Version: 3.22.4
  • Nitro Version: 0.0.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Vue

Version

3.0.0-beta.2

Reproduction

<USelectMenu
    v-model="medication.medicationId"
    placeholder="Selecione um medicamento"
    value-key="value"
    :loading="$getProducts.isLoading.value"
    :items="
      $getProducts.data.value?.map((item) => ({
        label: item.nome,
        value: item.id_produto,
        disabled: true
      }))
    "
  />
Gravar.a.tela_20250306_155828.webm

Description

We are still able to select disabled items in USelectMenu.

Additional context

No response

Logs

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