When a fragment has child elements that are removed (like from a model being updated), those elements are not totally removed.
This is different from the behavior of a div.
Visual
Below is my initial state.
Containing everything will either be a div or fragment.
In both scenarios, I remove the top transaction form.
div
fragment
As you can see, removing the top transaction form in a fragment leaves the total count of forms the same, simply duplicating the last form and associating those forms with the same transaction in my model.
Problem
When a fragment has child elements that are removed (like from a model being updated), those elements are not totally removed.
This is different from the behavior of a div.
Visual
Below is my initial state.
Containing everything will either be a div or fragment. In both scenarios, I remove the top transaction form.
div
fragment
As you can see, removing the top transaction form in a fragment leaves the total count of forms the same, simply duplicating the last form and associating those forms with the same transaction in my model.