phoenixframework / phoenix_live_view

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

Add missing spots to dynamic form docs #3301

Open bohdan-shulha opened 3 weeks ago

bohdan-shulha commented 3 weeks ago

Currently it is not possible to delete the item if it is the single child in the form.

To keep this working, we need to add a value to the smth[*_drop][] field.

SteffenDE commented 3 weeks ago

I implemented a form doing what's in the docs quite recently and the extra value is not needed there, so can you clarify under which circumstances it doesn't work without it?

See https://github.com/phoenixframework/phoenix_live_view/issues/3270#issuecomment-2137400307