symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
845 stars 310 forks source link

[ux-swup] `@swup/forms-plugin` doesn't trigger symfony clicked SubmitButton #205

Open cavasinf opened 2 years ago

cavasinf commented 2 years ago

Currently using SWUP form-plugin. And I have a form with two SubmitButton, rendered from the Controller/FormType + twig form_widget().

       $builder
           ->add('reset',
                SubmitType::class,
                [
                    'label' => 'action.erase_filter',
                ]
            )
            ->add('filter_data',
                SubmitType::class,
                [
                    'label' => 'action.filter',
                ]
            )
        ;

In a Subscriber Event listening on FormEvents::POST_SUBMIT, clicked event are no longer populated. I have no ways to know which one of my buttons are clicked.

With @swup/forms-plugin: image

Default Symfony behavior: image

carsonbot commented 6 months ago

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot commented 5 months ago

Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.

carsonbot commented 5 months ago

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!