Skip to content

Commit

Permalink
minor #2474 [LiveComponent] remove form property in live component do…
Browse files Browse the repository at this point in the history
…cs (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
  • Loading branch information
Kocal committed Jan 5, 2025
2 parents fd26660 + 7c47beb commit 2ca3f33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1455,9 +1455,7 @@ or omit it entirely to let the ``initialFormData`` property default to ``null``:
{# templates/post/new.html.twig #}
{# ... #}
{{ component('PostForm', {
form: form
}) }}
{{ component('PostForm') }}
Submitting the Form via a LiveAction
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 2ca3f33

Please sign in to comment.