If called with a boolean (checkbox {:checked false}),
dumdom.core/render renders it as </input type="checkbox" checked=false>,
but
dumdom.string/render renders it as </input type="checkbox" checked="false"> .
And since (not= "false" false), the component renders as checked by dumdom.string/render (until the component is inflated).
When giving boolean props to components, behavior is different between
dumdom.core/render
anddumdom.string/render
.Consider the following component:
If called with a boolean
(checkbox {:checked false})
,dumdom.core/render
renders it as</input type="checkbox" checked=false>
, butdumdom.string/render
renders it as</input type="checkbox" checked="false">
.And since
(not= "false" false)
, the component renders as checked bydumdom.string/render
(until the component is inflated).