Skip to content

min-w-fit not working with virtualization in USelectMenu #5534

@fkwww27

Description

@fkwww27

Environment

  • Operating System: Linux
  • Node Version: v22.16.0
  • Nuxt Version: 4.2.1
  • CLI Version: 3.30.0
  • Nitro Version: 2.12.9
  • Package Manager: npm@10.9.2
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.1.0

Reproduction

https://stackblitz.com/edit/uselectmenu-error

Description

When using the USelectMenu component with the virtualize option enabled, the min-w-fit class applied via the ui.content property does not behave correctly. The dropdown content does not resize to fit the longest item.
Without virtualization, the same configuration works as expected, the dropdown expands to show the full content width.

Additional context

Expected behavior:

Image

Unexpected behavior:

Image

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp2-mediumNotable issue or useful enhancementv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions