Everything works as expected: I can add new permissions to new records / existing records, I can remove permissions from existing records etc.
However, with validations I can't seem to get the marked_for_destruction class added to my <tr class="fields"> tag.
If I remove a permission from an existing record, submit the form and then it fails validation the re-rendered form doesn't display the marked_for_destruction class on that DOM.
Hi,
I have the following code:
Everything works as expected: I can add new permissions to new records / existing records, I can remove permissions from existing records etc.
However, with validations I can't seem to get the
marked_for_destruction
class added to my<tr class="fields">
tag.If I remove a permission from an existing record, submit the form and then it fails validation the re-rendered form doesn't display the
marked_for_destruction
class on that DOM.Any ideas?