Skip to content

Commit 571c239

Browse files
committed
Update docs
1 parent 6cabf9f commit 571c239

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guides/fields/custom-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def render_form(assigns) do
3333
<div>
3434
<Layout.field_container>
3535
<:label>
36-
<Layout.input_label text={@field_options[:label]} />
36+
<Layout.input_label for={@form[@name]} text={@field_options[:label]} />
3737
</:label>
3838
<BackpexForm.input
3939
type="text"

guides/fields/readonly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def render_form(assigns) do
5858
<div>
5959
<Layout.field_container>
6060
<:label>
61-
<Layout.input_label text={@field[:label]} />
61+
<Layout.input_label for={@form[@name]} text={@field[:label]} />
6262
</:label>
6363
<BackpexForm.input
6464
type="text"

0 commit comments

Comments
 (0)