Commit 7a28c8c
committed
Previously, `forceReflow()` would always use `document`.
When a component with a `TransitionGroup` was moved to another document, move transitions broke because of this.
This is fixed by accessing the current instance's `ownerDocument` and using that for the reflow.
This is my first time contributing to vue, and I'm not entirely sure if this fix is the right way to go (especially when it comes to perf and possibly unintended side effects).
1 parent 75220c7 commit 7a28c8c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
480 | | - | |
| 481 | + | |
| 482 | + | |
481 | 483 | | |
0 commit comments