Property with nullish value in inline style should be omitted #8933
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
help wanted
Please help with this issue!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In JSX,
<div style={{ backgroundColor: condition ? '#d6f9dd' : undefined }} />
will not produce any style. But is astro template, this will producestyle="background-color:undefined"
What's the expected result?
behave as convention in JSX
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-47zegu?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: