preact-css-transition-group icon indicating copy to clipboard operation
preact-css-transition-group copied to clipboard

Fix: render order of a replaced single child

Open niedzielski opened this issue 8 years ago • 0 comments

When operating on a list of size one, preserve the render order of children.

On single element children, the render order appears to be incorrectly swapped when adding and removing another child. I don't claim to fully understand all the intricacies of this library but I've tried to add some tests to make the change a little more confident.

niedzielski avatar Dec 18 '17 17:12 niedzielski