Closed adobley closed 2 weeks ago
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.
POST
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.
If the method is not get nor post
method="GET" should cause the form to submit a GET request.
method="GET"
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 aGET
.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 aGET
request.Fixes