Skip to content

redundant ref="[object Object]" attribute rendered in custom element during SSR #34016

Closed
vuejs/core
#14275

Description

@kingyue737

Environment

Nuxt project info:

Operating system Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
CPU Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (8 cores)
Node.js version v20.19.1
nuxt/cli version 3.31.3
Package manager [email protected]
Nuxt version 4.2.2
Nitro version 2.12.9
Builder [email protected]
Config compatibilityDate, devtools
Modules -

Reproduction

https://stackblitz.com/edit/github-zx7x5nga

Describe the bug

When I use template ref on a custom element in SSR mode. It will render a ref="[object Object]" attribute unexpectedly:

<my-component ref="[object Object]">hello</my-component>

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triageupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions