Skip to content

Commit 6db95d5

Browse files
authored
Merge pull request #405 from IdoLeshkowitz/main
Fix hidden `checkbox-group` input name
2 parents 79a16ac + 8715c03 commit 6db95d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/petal_components/field.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ defmodule PetalComponents.Field do
237237
<.field_label required={@required} class={@label_class}>
238238
{@label}
239239
</.field_label>
240-
<input type="hidden" name={@name} value="" />
240+
<input type="hidden" name={@name <> "[]"} value="" />
241241
<div class={[
242242
"pc-checkbox-group",
243243
@group_layout == "row" && "pc-checkbox-group--row",

0 commit comments

Comments
 (0)