Skip to content

InputMenu removal of selected tags fails when using label-key and value-key #5248

@jmwhaley

Description

@jmwhaley

Environment

  • Operating System: Windows_NT
  • Node Version: v22.17.0
  • Nuxt Version: 4.1.3
  • CLI Version: 3.29.2
  • Nitro Version: 2.12.7
  • Package Manager: npm@10.9.2
  • Builder: -
  • User Config: devtools, runtimeConfig, app, security, modules, colorMode, scripts, css, pinia, piniaPluginPersistedstate, nitro, experimental, compatibilityDate, vite
  • Runtime Modules: @nuxt/ui@4.0.1, @nuxt/eslint@1.9.0, @pinia/nuxt@0.11.2, pinia-plugin-persistedstate/nuxt@4.5.0, nuxt-security@2.4.0, @nuxt/scripts@0.13.0, @nuxtjs/color-mode@3.5.2
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.0.1

Reproduction

<UInputMenu
      value-key="id"
      label-key="name"
      :items="[
            {name:'One', id:1},
            {name:'Two', id:2},
            {name:'Three', id:3},
           ]" multiple />

Description

When selections are made in an InputMenu in multiple mode, they are shown as tags with an "x" next to them to deselect them. That "x" doesn't work if you are using label-key and value-key to select properties from an array of objects.

Additional context

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions