Skip to content

Can not target UButton with template ref #5108

@demi-avaliani

Description

@demi-avaliani

Environment

Operating System: MacOS
Node Version: v22.19.0
Nuxt UI Version: 4.0.0
Vue Version: 3.5.18
Package Manager: npm@10.9.3
Builder: -
User Config: default
Runtime Modules: @nuxt/ui@4.0.0
Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.0.0

Reproduction

https://codesandbox.io/p/devbox/new-frog-m4rh4c?workspaceId=ws_KdyD2hrF3hsKM88tUwW5Sb

Description

Can not target UButton component with a template ref. Maybe UButton should expose a ref similarly UInput as in defineExpose({ inputRef });

Additional context

No response

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