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
As is
The combination of prop spreading and passing attributes that should have an explicit true value leads to wrong server-side rendering. The same issue is described here: #6121 but the bug reappears when using the spread props, for example, when passing {...$$restProps}. It seems like this behavior is violated here:
Expected to be
Render attr="" when the value passed to it is true if it's a boolean attribute. In the case of any other attribute, attr="true" should be rendered instead (as it is when using DOM rendering).
Describe the bug
As is
The combination of prop spreading and passing attributes that should have an explicit true value leads to wrong server-side rendering. The same issue is described here: #6121 but the bug reappears when using the spread props, for example, when passing
{...$$restProps}
. It seems like this behavior is violated here:svelte/packages/svelte/src/runtime/internal/ssr.js
Line 39 in abf2573
Expected to be
Render attr="" when the value passed to it is true if it's a boolean attribute. In the case of any other attribute, attr="true" should be rendered instead (as it is when using DOM rendering).
Reproduction
Logs
No response
System Info
Doesn't matter for this bug
Severity
annoyance
The text was updated successfully, but these errors were encountered: