Skip to content

Commit 3bf3622

Browse files
authored
fix(modal): prevent page scroll as modal opens (#2963)
1 parent 0c3a7b0 commit 3bf3622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modal/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ export default {
520520
const count = incrementModalOpenCount()
521521
if (count === 1) {
522522
this.setScrollbar()
523+
this.setModalOpenClass(true)
523524
}
524525
this.adjustDialog()
525-
this.setModalOpenClass(true)
526526
this.setResizeEvent(true)
527527
},
528528
onEnter() {

0 commit comments

Comments
 (0)