-
Notifications
You must be signed in to change notification settings - Fork 146
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
fix!: solara.Meta elements insert empty span into DOM #625
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Why is this a problem? Why is the span even needed? |
@mariobuikhuizen This is what causes the extra spacing at the top of notebook-based tutorials with Granted this happens because these
and
|
This would be a better title for the commit/PR.
Strange, I never noticed an error with an empty template. |
Ok, I checked it, I write empty templates like this: <template>
</template> This produces no errors. Doing it like this: <template></template> Does produce the second error you mentioned. |
e500a9b
to
103e0af
Compare
bc6dd96
to
432d4b6
Compare
It's a bug in ipyvue that empty template tags on the same line don't work. |
Putting the templates on two different lines fixes both errors. What are your thoughts on the PR? In principle this is a breaking change on the UI side (if someone was unknowingly relying on this for spacing, for example), but I think we can sell it as a fix. I could rename it as suggested, but then the scope of the change seems smaller than it might be. |
432d4b6
to
ffbdeff
Compare
Having an empty template on one line or no tempate tag at all would incorrectly fallback to the deprecated template format where template tags were ommited. See: spacetelescope/jdaviz#2668 and widgetti/solara#625
Having an empty template on one line or no tempate tag at all would incorrectly fallback to the deprecated template format where template tags were ommited. See: spacetelescope/jdaviz#2668 and widgetti/solara#625
86646f5
to
df2fd66
Compare
cded5b2
to
32af76f
Compare
ffbdeff
to
98f59f9
Compare
Reverts #627, since the workaround is no longer needed.
3a90256
into
12-23-feat_change_mutation_detection_and_allow_reactive_boolean_defaults
The insertion of
<span></span>
into the dom is what causes strange extra spacing at the top of notebook-based tutorials with solara.Meta tags currently:Fixes #626
TODO: