Skip to content

Layout Animation Doesn’t Work When sibling component wrapped with AnimatePresence #49

@thmsfchtnr

Description

@thmsfchtnr

Description
When using a layout component whose width is animated based on another sibling component presence, the layout animation fails to work if the sibling components is wrapped with AnimatePresence.

stackblitz
Stackblitz

3. Steps to reproduce

  1. Toggle the checkbox

4. Expected behavior
The width of the layout animation div should animate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions