You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey thanks for taking the time to report! We're tracking the issue in withastro/compiler#955 and I made a PR that should fix it in withastro/compiler#963, so I'll close this as duplicate.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Using ternary operators inside a
Fragment
breaks the rendering of adjacent elements:In the above example, the
h1
will not be rendered. It'll only be rendered if:Fragment
Fragment
This functionality was working as expected in previous versions (e.g. 2.4.5).
Please see repro for examples.
What's the expected result?
Fragment
without conditions should be renderedFragment
with conditions should be rendered based on the evaluation of the condition, without the need of nestingFragment
.Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-cwjduy?file=src%2Fpages%2Findex.astro&title=Astro%20Starter%20Kit:%20Blog
Participation
The text was updated successfully, but these errors were encountered: