Leaving transition element not reacting to changes triggered in `before-leave` hook
Version
3.2.20
Reproduction link
Steps to reproduce
- Click the hide button
What is expected?
Both buttons turning red and becoming disabled as a result of the "disabled" variable becoming "true".
What is actually happening?
Only the "show" button, which is not part of the transition reacts as expected. The "hide" button seems to be immutable during the "leave" transition period.
- it works as expected on the reverse way, when fading in (before-enter hook fired)
- it works both ways, when the "hide" button uses "v-show" instead of "v-if" (line 39)
- might be related to https://github.com/vuejs/vue/issues/9573 and https://github.com/vuejs/vue-next/issues/3716