Skip to content

Allow nested transition to trigger upon removal #9328

Open
@mw76

Description

@mw76

Version

2.5.22

Reproduction link

https://jsfiddle.net/wx91uLft/
other: https://jsfiddle.net/ae82rfnv/

Steps to reproduce

  • Show/hide elements with the "Toggle" button.
  • Show/hide elements with the "Toggle Ticked" button. Shows a workaround.

What is expected?

All transitions should be triggered on leave, even for nested child elements.

What is actually happening?

Transition classes don't get applied to nested child elements, when conditions for leaving transitions occur on the same tick.

Workaround: Delaying the parent transitions by one tick fixes the problem.


This has been reported, but got closed due to the sample code did not use appear on the <transition> elements. (See issues #7643 and #9243)

My example is more detailed and also provides a workaround.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions