Transition - UI not updated during transition process #12669
Description
Vue version
3.5.12
Link to minimal reproduction
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