Skip to content

Entering/Exiting flipped for last item in transition group #474

Open
@bookman25

Description

@bookman25

What is the current behavior?

When removing/adding items in a transition group:

  1. When removing the first item and adding an item to the end, first item stays in place until removed.
  2. When removing the last item and adding an item to the end, last item swaps place with the item being added.

What is the expected behavior?

When removing the last item, it should retain it's position until completely removed. Entering and Existing items should not swap places while in transition.

Remove the first item, list order stays consistent. Entering item appears at the end of the list and exiting item retains its position.
Remove the bottom item, entering/exiting items swap places. Entering item appears above item being exited.
https://codesandbox.io/s/k9xx51p555

Maybe the same bug as: #410

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions