Skip to content

Oddity with JS transition hooks used in combination with CSS #8784

Open
@alexdilley

Description

@alexdilley

Version

2.5.17

Reproduction link

https://codesandbox.io/s/6x4k5vrrkn

Steps to reproduce

Remove the [unused] done parameter from the leave callback signature in SideSheet.vue.

What is expected?

The component to transition both on enter and leave.

want

What is actually happening?

The component enters immediately (without transitioning).

get


The done callback shouldn't be needed if the transition duration is implicit in CSS (as noted in the docs). However, by retaining the done parameter in the function signature it is unclear why it should "work" (since it's unused within the function definition itself).

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