We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6eceb6 commit 9f65704Copy full SHA for 9f65704
1 file changed
src/components/Modal/ModalBase.web.tsx
@@ -39,6 +39,7 @@ class ModalBase extends React.PureComponent<ModalBaseProps> {
39
if (visible) {
40
if (!isBackgroundScrollable) {
41
document.body.style.overflow = 'hidden';
42
+ document.body.style.height = '100vh';
43
}
44
45
if (this.content.current) {
@@ -53,6 +54,7 @@ class ModalBase extends React.PureComponent<ModalBaseProps> {
53
54
} else {
55
56
document.body.style.overflow = '';
57
+ document.body.style.height = '';
58
59
60
@@ -76,6 +78,7 @@ class ModalBase extends React.PureComponent<ModalBaseProps> {
76
78
backgroundColor: transparent ? 'transparent' : 'white',
77
79
bottom: 0,
80
left: 0,
81
+ overflow: 'auto',
82
position: isBackgroundScrollable ? 'absolute' : 'fixed',
83
right: 0,
84
top: 0,
0 commit comments