Might be related: LiveComponent Conditional Rendering Issue Using a For Comprehension - #4 by ruslandoga
tl;dr morphdom uses node id
for keying the element and if it’s missing, it’s doing non-keyed updates (i.e. instead of moving the elements, it’s adding or removing the difference).