You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phoenix gained the ability to distinguish between which submit button was clicked in phoenixframework/phoenix_live_view#2490. Unfortunately, this doesn't work with the default way surface handles form submit.
How to reproduce it
Create a form using <Form> components, with 2 submit buttons. Ensure the submit buttons have a name and value attribute set
Describe the bug
Phoenix gained the ability to distinguish between which submit button was clicked in phoenixframework/phoenix_live_view#2490. Unfortunately, this doesn't work with the default way surface handles form submit.
How to reproduce it
<Form>
components, with 2 submit buttons. Ensure the submit buttons have aname
andvalue
attribute setsubmit
as a value in the params mapThe behavior you expected
I should see the
submit
value as eithersave
orsubmit
, depending on the button that was clicked. This is how it works in native Phoenix LiveViewYour Environment
Surface: v0.11.0
LiveView: v0.19.5
Elixir: 1.14.4-otp-25
The text was updated successfully, but these errors were encountered: