From 5eec21102fec82946c051b14c6d45d22dfda1d4a Mon Sep 17 00:00:00 2001 From: Steffen Deusch Date: Thu, 30 May 2024 14:54:20 +0200 Subject: [PATCH] fix duplicate action field --- lib/phoenix_html/form.ex | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/phoenix_html/form.ex b/lib/phoenix_html/form.ex index e34cb18..2207254 100644 --- a/lib/phoenix_html/form.ex +++ b/lib/phoenix_html/form.ex @@ -65,22 +65,20 @@ defmodule Phoenix.HTML.Form do params: %{}, errors: [], options: [], - index: nil, - action: nil + index: nil @type t :: %Form{ source: Phoenix.HTML.FormData.t(), name: String.t(), data: %{field => term}, - action: atom(), + action: nil | String.t() | atom(), params: %{binary => term}, hidden: Keyword.t(), options: Keyword.t(), errors: [{field, term}], impl: module, id: String.t(), - index: nil | non_neg_integer, - action: nil | String.t() + index: nil | non_neg_integer } @type field :: atom | String.t()