Skip to content

Commit

Permalink
fix(dialog): dialog lock when preventScrollThrough and modal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed May 10, 2022
1 parent 7a8628a commit ee1fa27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DialogConfig>('d
if (this.draggable) {
window.addEventListener('resize', throttle(this.resizeAdjustPosition, 1000));
}
if (this.visible) {
if (this.visible && ['modeless', 'modal'].includes(this.mode) && this.preventScrollThrough) {
addClass(document.body, lockClass);
}
},
Expand Down

0 comments on commit ee1fa27

Please sign in to comment.