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
Leftover DOM elements when switching between fragment and element #2842
Comments
hi it's because of the I find the funny approach of putting a the problem in this example is that each piece of text is considered as a pseudo element node in the first you have "text" then to avoid this problem, you must surround your text with a or other tag or you can also delete the
tag in this case it will replace all the text inside the parent |
This is indeed a bug, thanks for the report. I'll look into this. |
Mithril.js version: v2.0.4-156-gad9aa97d
Browser and OS: Firefox on Linux.
Project:
Code
Flems
Steps to Reproduce
<div>
'b'
element from the fragment remains in the DOM after switching back to the non-fragment version.The text was updated successfully, but these errors were encountered: