From 7c47beb76f58d7eecbbf0b2ac3bdb5acfb845e51 Mon Sep 17 00:00:00 2001 From: JannesD Date: Mon, 30 Dec 2024 14:43:33 +0100 Subject: [PATCH] remove form property in live component docs Passing the form as a property isn't explained until the next section down in the docs. This clears up the example example to make it less confusing. --- src/LiveComponent/doc/index.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index ad3cc216f8..2e06963705 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~