Skip to content
Permalink
Browse files
fix(b-modal): transition timing (#4766)
  • Loading branch information
tmorehouse committed Feb 14, 2020
1 parent 6adcd0f commit 968c95758e45610a8c002507790c79d87d8fe956
Showing 1 changed file with 4 additions and 1 deletion.
@@ -604,10 +604,13 @@ export const BModal = /*#__PURE__*/ Vue.extend({
},
onEnter() {
this.isBlock = true
// We add show class 1 frame after
requestAF(() => {
this.isShow = true
})
},
onAfterEnter() {
this.checkModalOverflow()
this.isShow = true
this.isTransitioning = false
// We use `requestAF()` to allow transition hooks to complete
// before passing control over to the other handlers

0 comments on commit 968c957

Please sign in to comment.