Skip to content

Commit 2ca3f33

Browse files
committed
minor #2474 [LiveComponent] remove form property in live component docs (jannes-io)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] remove form property in live component docs | Q | A | ------------- | --- | Bug fix? | no | New feature? |no <!-- please update src/**/CHANGELOG.md files --> | Issues | | License | MIT Passing the form as a property isn't explained until the next section down in the docs. This clears up the example to make it less confusing. Commits ------- 7c47beb remove form property in live component docs
2 parents fd26660 + 7c47beb commit 2ca3f33

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)