Closed brattonross closed 3 months ago
I would assume that this is because boolean attributes are being registered as properties, instead of attributes, and so we are never hitting the boolean case here, but that's just a guess from a quick glance at the code.
Hmm no that case should still be hit, I will investigate!
Ah uncovered. On the erlang target dynamic.classify(dynamic.from(True))
gives us "Atom"
not "Boolean"
(because bools are just atoms!). I can special-case this one.
Fixed and will be live either in the next rc or v4 if i publish that instead :)
Great, thanks!
Using boolean attributes on elements doesn't appear to work as expected, I'm only using lustre to render html elements to strings, so I'm not sure if this affects the SPA side of things.
For example:
I would assume that this is because boolean attributes are being registered as properties, instead of attributes, and so we are never hitting the boolean case here, but that's just a guess from a quick glance at the code.
Happy to take a look and make a PR