Skip to content

Commit a50f1f9

Browse files
committed
chore: improve comments about Vue.js related transition-group bugs
1 parent da93e3c commit a50f1f9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/toast/toaster.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ export const DefaultTransition = /*#__PURE__*/ Vue.extend({
4444
},
4545
methods: {
4646
onAfterEnter(el) {
47-
// Handle bug where enter-to class is not removed.
48-
// Bug is related to portal-vue and transition-groups.
47+
// Work around a Vue.js bug where `*-enter-to` class is not removed
48+
// See: https://github.com/vuejs/vue/pull/7901
49+
// The `*-move` class is also stuck on elements that moved,
50+
// but there are no JavaScript hooks to handle after move
51+
// See: https://github.com/vuejs/vue/pull/7906
4952
requestAF(() => {
5053
removeClass(el, `${this.name}-enter-to`)
51-
// The *-move class is also stuck on elements that moved,
52-
// but there are no javascript hooks to handle after move.
5354
})
5455
}
5556
},

0 commit comments

Comments
 (0)