Skip to content

UInputMenu does not update value when loading items asynchronously #5022

@projct1

Description

@projct1

Environment

  • Operating System: Linux
  • Node Version: v22.19.0
  • Nuxt Version: 3.19.2
  • CLI Version: 3.28.0
  • Nitro Version: 2.12.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, devtools, compatibilityDate, future, css
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Package

v3.x

Version

3.3.2

Reproduction

https://codesandbox.io/p/live/c8989fce-eef5-4bf4-91ca-57595ce54d47

Description

  1. If items is loaded asynchronously, the default label value is displayed incorrectly after loading.
  2. If the initial value is a numeric string ("5073) and the value-key value in the items object is the same number (5073), the label is displayed incorrectly during initial rendering.

P.S. To ensure that the value of items is displayed correctly after loading, the v-if="items.length" directive helps, but this is a hack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions