8000 Reusing anchor node leaves empty href attr · Issue #169 · elm/virtual-dom · GitHub
[go: up one dir, main page]

Skip to content

Reusing anchor node leaves empty href attr #169

Open

Description

@sgaston321

Problem:
When an anchor node that has an href is reused by the virtualdom, it leaves an empty href="" attribute instead of removing the attribute.
This causes clicks to reload the page.

Example:
https://ellie-app.com/8NNcGgTmMfpa1

Activity

  1. sgaston321 commented on May 8, 2020

    @sgaston321
    Author

    workaround is to use another type of node when you don't want a link and style appropriately

  2. added a commit that references this issue on Nov 20, 2025
    03132c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0