This commit is contained in:
parent
967a89b18d
commit
156cdb24d0
5 changed files with 62 additions and 4 deletions
|
|
@ -72,7 +72,10 @@ defmodule MvWeb.MemberLive.FormComponent do
|
|||
|
||||
@impl true
|
||||
def handle_event("validate", %{"member" => member_params}, socket) do
|
||||
{:noreply, assign(socket, form: AshPhoenix.Form.validate(socket.assigns.form, member_params))}
|
||||
#IO.inspect(socket.assigns.form, label: "BEFORE_VALIDATION!!!")
|
||||
form = AshPhoenix.Form.validate(socket.assigns.form, member_params)
|
||||
#IO.inspect(form, label: "AFTER_VALIDATION!!!")
|
||||
{:noreply, assign(socket, form: form)}
|
||||
end
|
||||
|
||||
def handle_event("save", %{"member" => member_params}, socket) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue