Skip to content

Commit 72cacda

Browse files
committed
minor #411 [LiveComponent] Add missing ComponentWithFormTrait in docs (janklan)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Add missing ComponentWithFormTrait in docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | n/a | License | MIT The Live Form is missing a trait that's needed for it to work. Commits ------- 065f519 Add missing ComponentWithFormTrait
2 parents ebe425c + 065f519 commit 72cacda

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)