gleam-lustre icon indicating copy to clipboard operation
gleam-lustre copied to clipboard

lustre/element fragment doesn't update child elements properly

Open yoonthegoon opened this issue 7 months ago • 2 comments

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.

image

Containing everything will either be a div or fragment. In both scenarios, I remove the top transaction form.

div

image

fragment

image

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.

yoonthegoon avatar Jul 19 '24 18:07 yoonthegoon