diff --git a/lib/live_view_native/template.ex b/lib/live_view_native/template.ex
index 2321f3e..e35a73a 100644
--- a/lib/live_view_native/template.ex
+++ b/lib/live_view_native/template.ex
@@ -21,9 +21,6 @@ defmodule LiveViewNative.Template do
defp build_attrs([{k, true} | t]),
do: [?\s, key_escape(k) | build_attrs(t)]
- defp build_attrs([{_, false} | t]),
- do: build_attrs(t)
-
defp build_attrs([{_, nil} | t]),
do: build_attrs(t)
diff --git a/test/live_view_native/template_test.exs b/test/live_view_native/template_test.exs
index b9b3948..5c1b5d8 100644
--- a/test/live_view_native/template_test.exs
+++ b/test/live_view_native/template_test.exs
@@ -69,6 +69,15 @@ defmodule LiveViewNative.TemplateTest do
|> render() =~ ~S()
end
+ test "accepts false for a value and doesn't drop the attribute" do
+ assigns = %{}
+
+ assert ~LVN"""
+
+ """
+ |> render() =~ ~S()
+ end
+
test "json encode maps" do
assigns = %{}