Skip to content

after-enter event triggered even when transition wrapped in keep-alive never shows its child #14031

@rzzf

Description

@rzzf

Vue version

3.5.22

Link to minimal reproduction

https://play.vuejs.org/#eNp9UstOwzAQ/BXjS4tEkwOckFvxUA9wAAQcfQnppjV1bMt2SqUo/86u05Ty6iGxvTs7O2tPy6+dyzYN8EsuQumViyxAbNxMGlU76yNrmYeKdazytmYjhI72qVtbu108y+lATJiWprQmINPKfrAp1Y+rQgc4lUbkfRfkx0OE2ukiAp4Yo0+8NTFaw65Krcr1VPIdxQmtks9ouWRt21N3ncj7gkSH5WsANym02vSUGEkaNxNV7ciQRCStCSDybxUiP1DEz3gMOEilltl7sAavqE06eYnlSoN/dFHhoJKjpL6d5IXW9uM+xaJv4GyIlyso13/E38OWYpI/eQjgNyD5PhcLv4TYp+cvD7DF/T5Z20WjEX0k+QzB6oY09rCbxixQ9gEuqb1Lr6nM8jXMtxFMGIYioYTsEl5yfF26uf9G/5J7nl2kOmk6vMXBGX94bHDKqiBl11UEPzf4wycfn7LprCcnjNWQabscjwoCTYBQIzQU9jjiKfHqC5yHtLKrg0o0w8+WaIydZcgvZBUEJdti5nal9ELkg2m+WH+ZpvsEx1wfEg==

Steps to reproduce

Click the button repeatedly, and you’ll notice that after-enter is logged in the console.

What is expected?

The after-enter event should not be triggered when no transition is applied.

What is actually happening?

The after-enter event is triggered even when the element wrapped in a transition is never displayed.

System Info

Any additional comments?

discussion #14030

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