Skip to content

Commit 7c47beb

Browse files
authored
remove form property in live component docs
Passing the form as a property isn't explained until the next section down in the docs. This clears up the example example to make it less confusing.
1 parent 507c89c commit 7c47beb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,7 @@ or omit it entirely to let the ``initialFormData`` property default to ``null``:
14551455
{# templates/post/new.html.twig #}
14561456
{# ... #}
14571457
1458-
{{ component('PostForm', {
1459-
form: form
1460-
}) }}
1458+
{{ component('PostForm') }}
14611459
14621460
Submitting the Form via a LiveAction
14631461
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)