Closed adenobe closed 1 year ago
please make sure you are on latest ecto_sql and phoenix_live_view (mix deps.update both of them) and report back. I assume you mean that when you click "Add more" from the initial empty changeset nothing happens, right? This should have been fixed on ecto_sql, so please give that a try. Thanks!
@chrismccord Yes, I am on the latest ecto_sql (3.10.1) and phoenix_live_view (0.18.18).
Not only "add more", the nested inputs don't display at all and remove field does not work as well
Terminal shows like below but not changes
HANDLE EVENT "validate" in TryInputsWeb.ListLive
Parameters: %{"_target" => ["list", "notifications_order"], "list" => %{"notifications" => %{"0" => %{"email" => "email@me.com", "name" => "me"}, "1" => %{"email" => "email@you.com", "name" => "yo"}}, "notifications_delete" => ["0"], "notifications_order" => ["0", "1", "on"], "position" => "", "title" => ""}}
Please @dfalling how were you able resolve this?
Your “validate” is not doing anything. Please Make sure it creates a new changeset with the params.
Thanks @josevalim That fixed it
Environment
Actual behavior
I was trying to replicate the example from @chrismccord Key note address: https://youtu.be/FADQAnq0RpA?t=2990, I expected the nested inputs to display but they don't except when I set the values upfront on the Changeset. Not sure what I am doing wrong
Expected behavior
I expected the nested inputs to display as explained on that video. I also expect to be able to remove and add nested fields as well
They only show when I do something like