Skip to content

Commit 1113c6f

Browse files
fix(b-modal): additional fixes for show transition behaviour (closes bootstrap-vue#4761) (bootstrap-vue#4777)
1 parent b1d5c45 commit 1113c6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/modal/modal.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,13 @@ export const BModal = /*#__PURE__*/ Vue.extend({
604604
},
605605
onEnter() {
606606
this.isBlock = true
607-
// We add show class 1 frame after
607+
// We add the `show` class 1 frame later
608+
// `requestAF()` runs the callback before the next repaint, so we need
609+
// two calls to guarantee the next frame has been rendered
608610
requestAF(() => {
609-
this.isShow = true
611+
requestAF(() => {
612+
this.isShow = true
613+
})
610614
})
611615
},
612616
onAfterEnter() {

0 commit comments

Comments
 (0)