Skip to content

<DevOnly> empties props of elements in its #fallback slot #24491

@miosenpai

Description

@miosenpai

Environment

------------------------------
- Operating System: Linux
- Node Version:     v18.18.0
- Nuxt Version:     3.8.2
- CLI Version:      3.10.0
- Nitro Version:    2.8.0
- Package Manager:  npm@9.4.2
- Builder:          -
- User Config:      devtools
- Runtime Modules:  -
- Build Modules:    -
------------------------------

Reproduction

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

Describe the bug

After build, props of elements in a DevOnly's fallback slot are emptied. For example, after executing npm run generate on the reproduction and taking a look at .output/public/index.html, you can see class="red" turned into class="".

Additional context

This issue was not present in Nuxt 3.6, so I think it might be a recent regression.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions