Skip to content

Commit

Permalink
minor #1250 Fixed some typos in UX Live Components code examples (rre…
Browse files Browse the repository at this point in the history
…nteria-dev)

This PR was merged into the 2.x branch.

Discussion
----------

Fixed some typos in UX Live Components code examples

Hey!

I fixed some code examples typos in the official UX Live components documentation.
Thanks in advance.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Issues        |
| License       | MIT

Commits
-------

fe98ede Fixed UX Live Components code examples
  • Loading branch information
weaverryan committed Nov 6, 2023
2 parents 643382b + fe98ede commit d9359db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ Now, create a Twig component to render the form::
use DefaultActionTrait;

#[LiveProp]
public initialFormData $post;
public Post $initialFormData;

protected function instantiateForm(): FormInterface
{
Expand Down Expand Up @@ -1759,7 +1759,6 @@ and ``removeComment()`` actions:

{{ form_widget(commentForm) }}
{% endfor %}
</div>

{# avoid an extra label for this field #}
{% do form.comments.setRendered %}
Expand Down

0 comments on commit d9359db

Please sign in to comment.