Skip to content

Transition - UI not updated during transition process #12669

Open
@zaalbarxx

Description

Vue version

3.5.12

Link to minimal reproduction

https://play.vuejs.org/#eNqFVFFv0zAQ/is3v7ST2m7dVoRKVsHQJOABECAQkl/c9NJ5dWzLdrKWqv+dc5ymG2PbSxTffd93d58v2bJ31o7qCtmUZT530gbwGCo741qW1rgAW3BYwA4KZ0roEbTHNde50T5A6ZdwGfP93gdUysAv49TiqHf8Zo/wN+buM65DCyuE8njIBsr8FKrCvcr47Lwhc11UOg/SaNCE6R/Dlmvo1EZ1SwquQoLDQalL9S4mr3qU2z1Qm4t89aRa091TcrG1JJedJKfIIzoELK0SAekE0HCmsN12AjsiAGQLWRMgC05oL9NcosRLzgL6wBmUZhFPpgpDqeksrEXhGk1ieys01ENZEORo3zahVrihyBwL45Cz2YOykM2rEKhQ2NgonU5Eepsrma8okpwlXlTLThJgRtNRtX8qIxnTVoss4qQ8IV6qkhx/1N0VhbuabbFD5ezk4FQbSA4CRP/veZ75sFHxZRSdHKIO6IaCLrvGdMt0mZ3UFIRSMPGAwuOQzN7vRyIrFDW+TM6rucyHc/wj0fXHAzgdTeLj9QDGcXcfCQazFzNW5DJspnDabFmrTrdXTtNrHOp3/+zUrlsl8qSZjw1Y8PTRFHI5uvVG0/faaHKWm9JKhe6LjU16zmj9kjhn1LC5+9TE4pcy2MfzG8xX/4nf+nWMcfbVoUdX01J1uSDcEunmY/r6e1rALknrWylCP5P8ht6oKvaYYFeVXlDb93BNtx+bv47Uyx/+eh2QvG+Hio1G5K7Bc0Z/ovfPjH5o93x00fDIT7b7C8ffq1M=

Steps to reproduce

Click on the button and watch the outcome

What is expected?

I would expect text to change inside the tag, just as it changes above the button.

What is actually happening?

For some reason the transition prevents the UI from being updated upon changes to the state. Not sure if this is expected or not (could not find any details on this in the docs).

The whole thing could obviously be mitigated in other ways, like using setTimeout with intermediate variable etc, but I am curious if this is a bug or intended behavior, maybe it has to do with some sort of optimizations to the rendering process etc ?

Even made a quick check for "native" transitions/animations and it works without problem, so I assume this is something related to Vue itself ?
https://codepen.io/zaalbarxx/pen/PwYQzXa?editors=1111

System Info

Windows 11, Chrome 131.

Any additional comments?

No response

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