ryanb / nested_form

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

Newly added items then removed are still validated by browser #324

Open gamov opened 10 years ago

gamov commented 10 years ago

Since Firefox 29 has started validating number fields, if you remove newly created fields with invalid data, they prevent the form to be submitted even though they are deleted (hidden) to the user. Why those newly created, unsaved items are not removed from the DOM instead of hidden? I guess I can add JS to delete them myself...

yewton commented 8 years ago

:+1: I faced into this problem, too. If I remove the "removed field" with dev console, I could save without validation error, FYI.