@codeleap/web 3.12.23 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -332,12 +332,20 @@ export const Modal = (props) => {
|
|
|
332
332
|
appRoot.setAttribute('tabindex', `${-1}`)
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
+
const htmlElement = document.documentElement
|
|
336
|
+
|
|
335
337
|
if (visible) {
|
|
336
338
|
document.body.style.overflowY = 'hidden'
|
|
337
339
|
document.body.style.overflowX = 'hidden'
|
|
340
|
+
|
|
341
|
+
htmlElement.style.overflowX = 'hidden'
|
|
342
|
+
htmlElement.style.overflowY = 'hidden'
|
|
338
343
|
} else {
|
|
339
344
|
document.body.style.overflowY = 'visible'
|
|
340
345
|
document.body.style.overflowX = 'hidden'
|
|
346
|
+
|
|
347
|
+
htmlElement.style.overflowX = 'hidden'
|
|
348
|
+
htmlElement.style.overflowY = 'auto'
|
|
341
349
|
}
|
|
342
350
|
}, [visible])
|
|
343
351
|
|