ryanb / nested_form

Rails plugin to conveniently handle multiple models in a single form.
MIT License
1.79k stars 505 forks source link

Deleted itens reapers when validation fails #347

Open fazelmk opened 9 years ago

fazelmk commented 9 years ago

When I delete a nested item and submit, if the validation fails the render form show the deleted itens. It keeps marked _destroy = true. but it shows in the form.

when destroy it marks the fields div as display: none and reloaded by validation failed it don't. I created a js.coffee to solve it outside nested_form script file.

jQuery -> $(".marked_for_destruction").hide()

dahbearz commented 9 years ago

:+1: Same issue. Would be nice to just delete something and forget about it.

Startouf commented 9 years ago

Duplicate of #346