Skip to content

Commit 4f22166

Browse files
committed
Fixes issue with errors being propagated to a nested <.inputs_for /> within a <.polymorphic_embed_inputs_for /> (see mathieuprog#115 and mathieuprog#132 on upstream)
1 parent 2c7b9d4 commit 4f22166

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/polymorphic_embed/html/helpers.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ if Code.ensure_loaded?(Phoenix.HTML) && Code.ensure_loaded?(Phoenix.HTML.Form) d
107107
name: if(array?, do: name <> "[" <> index_string <> "]", else: name),
108108
index: if(array?, do: i),
109109
errors: errors,
110+
action: parent_action,
110111
data: data,
111112
params: params,
112113
hidden: [{type_field_name, to_string(type)}],

0 commit comments

Comments
 (0)