Skip to content

Commit 968c957

Browse files
authored
fix(b-modal): transition timing (#4766)
1 parent 6adcd0f commit 968c957

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/modal/modal.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,13 @@ export const BModal = /*#__PURE__*/ Vue.extend({
604604
},
605605
onEnter() {
606606
this.isBlock = true
607+
// We add show class 1 frame after
608+
requestAF(() => {
609+
this.isShow = true
610+
})
607611
},
608612
onAfterEnter() {
609613
this.checkModalOverflow()
610-
this.isShow = true
611614
this.isTransitioning = false
612615
// We use `requestAF()` to allow transition hooks to complete
613616
// before passing control over to the other handlers

0 commit comments

Comments
 (0)