Closed segunadebayo closed 5 days ago
{ readOnly: false }
is generally handled wrong; as a workaround, add || undefined to your variable.
Is this a bug in Dom Expressions? Is readonly a Boolean Attribute being handled as a psuedo boolean?
EDIT:
I see..It is a bug. It is because the SSR spreads only checks boolean attributes and not the properties list and the camelCase version is under properties.. It is one of those places where we support both cases, but missed it in SSR. If you use the lowercase version readonly
it will be fine in both cases. But this should be looked at in DOM Expressions. I'm going to move this to Solid core repo for more visibility.
Duplicates
Latest version
Current behavior 😯
During SSR, spreading
<input {...{ readOnly: false }} />
results in the underlying input getting thereadonly
property. Here's what it looks like:Expected behavior 🤔
I expect it to be the same as applying
<input readOnly={false} />
which completely skips addreadonly
propertySteps to reproduce 🕹
Steps:
readOnly: false
Context 🔦
No response
Your environment 🌎
No response