Skip to content

Leptos <Meta/> injection can modify existing entry in <head>. #4469

@ToxicMushroom

Description

@ToxicMushroom

Describe the bug
The Meta injection was putting its attributes on the stylesheet above itself.

Leptos Dependencies
See reproduction

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/ToxicMushroom/leptos-reproducability/tree/meta-injection-wrong-target
  2. cargo leptos serve
  3. Toggle the switch, observe how the DOM changes in .

Screenshots
Image

Next Steps

  • I will make a PR
  • I would like to make a PR, but need help getting started
  • I want someone else to take the time to fix this
  • This is a low priority for me and is just shared for your information

Additional context
Can be worked around by putting the Stylesheet outside the shell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions