From fe98edefc971375f3060c1a8b0a4384bf02596aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Renter=C3=ADa?= Date: Sun, 5 Nov 2023 09:26:16 -0600 Subject: [PATCH] Fixed UX Live Components code examples Hey! I fixed some code examples. Thanks in advance. --- src/LiveComponent/doc/index.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index 5b1e4e1e75a..878123c16ee 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -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 { @@ -1759,7 +1759,6 @@ and ``removeComment()`` actions: {{ form_widget(commentForm) }} {% endfor %} - {# avoid an extra label for this field #} {% do form.comments.setRendered %}