Skip to content

Commit

Permalink
fix(b-modal): transition timing (#4766)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Feb 14, 2020
1 parent 6adcd0f commit 968c957
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 968c957

Please sign in to comment.