Transition gets interrupted on `beforeLeave` stage when setting value in the callback.
Version
3.0.5
Reproduction link
https://codesandbox.io/s/transition-bug-report-bxh3n?file=/src/App.vue
Steps to reproduce
- Open the link https://codesandbox.io/s/transition-bug-report-bxh3n?file=/src/App.vue
- Click on the button wait until element gets rendered
- Click on the non-white backdrop, then observe.
- Uncomment line 24 "counter.value ;"
- Repeat step 2 - 3. Or
Same steps 1. 2. 3 like above. 4 Remove the part in line 5 " {{ counter }}" 5. Repeat step 2 - 3.
What is expected?
Expecting the transition gets resolved normally
What is actually happening?
The transition gets interrupted by setting the transition
's first child display
value none
before transition ends.
After I took a look at the issue #2757 , I went to inspect code for vShow
and added a debugger
for update
method, I found that update
gets called 3 times for a single call (maybe because the update for the component children triggered the following call).