diff --git a/src/Dialog.tsx b/src/Dialog.tsx index 1887466..c723024 100644 --- a/src/Dialog.tsx +++ b/src/Dialog.tsx @@ -180,10 +180,12 @@ export default class Dialog extends React.Component { onAnimateAppear = () => { document.body.style.overflow = 'hidden'; + document.body.style.position = 'fixed'; } onAnimateLeave = () => { document.body.style.overflow = ''; + document.body.style.position = ''; if (this.wrapRef) { this.wrapRef.style.display = 'none'; }