Skip to content

Commit 065f519

Browse files
authored
Add missing ComponentWithFormTrait
The Live Form is missing a trait that's needed for it to work.
1 parent ebe425c commit 065f519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,10 +774,12 @@ make it easy to deal with forms::
774774
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
775775
use Symfony\UX\LiveComponent\Attribute\LiveProp;
776776
use Symfony\UX\LiveComponent\ComponentWithFormTrait;
777+
use Symfony\UX\LiveComponent\DefaultActionTrait;
777778

778779
#[AsLiveComponent('post_form')]
779780
class PostFormComponent extends AbstractController
780781
{
782+
use DefaultActionTrait;
781783
use ComponentWithFormTrait;
782784

783785
/**

0 commit comments

Comments
 (0)