Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusing anchor node leaves empty href attr #169

Open
sgaston321 opened this issue May 8, 2020 · 1 comment
Open

Reusing anchor node leaves empty href attr #169

sgaston321 opened this issue May 8, 2020 · 1 comment

Comments

@sgaston321
Copy link

sgaston321 commented May 8, 2020

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

@sgaston321
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant