Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Deleted itens reapers when validation fails #347

Open
fazelmk opened this issue Jan 17, 2015 · 2 comments
Open

Deleted itens reapers when validation fails #347

fazelmk opened this issue Jan 17, 2015 · 2 comments

Comments

@fazelmk
Copy link

fazelmk commented Jan 17, 2015

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
Copy link

👍 Same issue. Would be nice to just delete something and forget about it.

@Startouf
Copy link

Duplicate of #346

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants