Boolean atom not serialized by `phx-value`?

phx-value-value={true} arrives as "value" => "" in the message handler. Please, help :smiley:

{:phoenix, β€œ~> 1.7.6”}
{:phoenix_live_view, β€œ~> 0.19.0”},

That’s by default to support <input type="checkbox" checked={boolean}>. You can always do attr={"#{boolean}"} to force serialization to string.

Thank you for the fast response @LostKobrakai! Forgot I could do this with boolean, I instead wrote the if thing :smiley: I thought Phoenix.HTML.Safe was responsible for serialization, feeling I was mislead.

May I ask how exactly checked={boolean} comes into play here?