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
Hello team, not sure if this is kit specific or should be reported in the Svelte repo. If the later, my apologies.
Somewhere in the past, support for better handling of inert was added to Svelte, probably since #7500, which only set inert when inert=true, because inert=false is still inertby the boolean attributes specs.
However, recently I found out that this behavior is not respected during SSR.
The issue appears as early as v5.0.0. As far as I can tell only the inert attribute is affected. Other boolean attrs like selected, checked etc work as expected.
As a workaround, setting inert to null or undefined instead of false works.
Describe the bug
Hello team, not sure if this is kit specific or should be reported in the Svelte repo. If the later, my apologies.
Somewhere in the past, support for better handling of
inert
was added to Svelte, probably since #7500, which only setinert
wheninert=true
, becauseinert=false
is stillinert
by the boolean attributes specs.However, recently I found out that this behavior is not respected during SSR.
Reproduction
Please see https://github.com/vnphanquang/sveltekit-no-csr-inert-reproduction
To reiterate,
src/routes/+page.ts
......and
src/routes/+page.svelte
......together render...
Logs
System Info
Severity
annoyance
Additional Information
This means false
inert
behaviors when JS is not available. Workaround for my particular use case:and
Of course, this won't work if
inert
is to be true during ssr, in which case object spread is a possible workaround.The text was updated successfully, but these errors were encountered: