Skip to content

Commit

Permalink
MessageBox: remove body's hidden class when using MessageBox twice
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyang committed May 28, 2018
1 parent b726aa0 commit ca36325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/utils/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
opened: false,
bodyPaddingRight: null,
computedBodyPaddingRight: 0,
withoutHiddenClass: false,
withoutHiddenClass: true,
rendered: false
};
},
Expand Down Expand Up @@ -216,6 +216,7 @@ export default {
document.body.style.paddingRight = this.bodyPaddingRight;
removeClass(document.body, 'el-popup-parent--hidden');
}
this.withoutHiddenClass = true;
}
}
};
Expand Down
1 change: 0 additions & 1 deletion test/unit/specs/mixin.vue-popup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const Popup = Object.assign({}, VuePopup, {
describe('Mixin:vue-popup', () => {
let vm;
before(() => {
document.body.className = '';
const modals = document.querySelectorAll('.v-modal');
[].forEach.call(modals, modal => {
modal &&
Expand Down

0 comments on commit ca36325

Please sign in to comment.