Hi.
I’ve just installed phoenix and generated auth without live and for new registration have form like this:
<.simple_form :let={f} for={@changeset} action={~p"/users/sign_up"}>
<.error :if={@changeset.action == :insert}>
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:email]} type="email" label="Email" required />
<.input field={f[:password]} type="password" label="Password" required />
<:actions>
<.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
</:actions>
</.simple_form>
And founded that submit button is not getting disabled on submit.
So my question is isn’t this feature supposed to work on dead views?
Also looks like phx-submit
event is not being dispatched on form element, is this expected?
If no is there something to achieve similar behaviour?
Thank you!