Skip to content

Commit 4d37f31

Browse files
Fixed UX Live Components code examples
Hey! I fixed some code examples. Thanks in advance.
1 parent cb14051 commit 4d37f31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ Now, create a Twig component to render the form::
17151715
use DefaultActionTrait;
17161716

17171717
#[LiveProp]
1718-
public initialFormData $post;
1718+
public Post $initialFormData;
17191719

17201720
protected function instantiateForm(): FormInterface
17211721
{
@@ -1759,7 +1759,6 @@ and ``removeComment()`` actions:
17591759

17601760
{{ form_widget(commentForm) }}
17611761
{% endfor %}
1762-
</div>
17631762

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

0 commit comments

Comments
 (0)