phoenixframework / phoenix_live_view

Rich, real-time user experiences with server-rendered HTML
https://hex.pm/packages/phoenix_live_view
MIT License
6.14k stars 921 forks source link

Form methods are case sensitive #3422

Closed adobley closed 2 weeks ago

adobley commented 3 weeks ago

Actual behavior

When configuring the form method the method type is case sensitive. This was surprising and led to some confusion. When configuring the form as below the form sends a POST instead of a GET.

<.form for={@form} method="GET" action={~"/my-route"}>

The docs do mention If the method is not get nor post but it isn't clear that this is case sensitive.

Expected behavior

method="GET" should cause the form to submit a GET request.

Fixes