diff --git a/README.md b/README.md index e00589a..a1d064d 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ You may use `polymorphic_embed_inputs_for/2` when working with LiveView. ```elixir <.form - let={f} + :let={f} for={@changeset} id="reminder-form" phx-change="validate" diff --git a/lib/polymorphic_embed/html/form.ex b/lib/polymorphic_embed/html/form.ex index a6aee90..609ad67 100644 --- a/lib/polymorphic_embed/html/form.ex +++ b/lib/polymorphic_embed/html/form.ex @@ -53,7 +53,7 @@ if Code.ensure_loaded?(Phoenix.HTML) && Code.ensure_loaded?(Phoenix.HTML.Form) & ## Example <.form - let={f} + :let={f} for={@changeset} id="reminder-form" phx-change="validate"