Skip to content

use timeout props without exit time #460

Closed
@LiuuY

Description

@LiuuY

Do you want to request a feature or report a bug?

bug, maybe?

What is the current behavior?

if I use timeout props without exit time, eg,

<CSSTransition
  key={id}
  timeout={{
    enter: 300,
    // no exit time
  }}
  classNames="fade"
>

https://codesandbox.io/s/wnjp84n125

Click the red X button, after the animation, the element that should (?) be removed from DOM tree is still there.

Is this a feature or a bug?

image

version: 2.2.1

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