Skip to content

Commit

Permalink
fix duplicate action field
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed May 30, 2024
1 parent 684e26c commit 5eec211
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/phoenix_html/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5eec211

Please sign in to comment.