From bdde0f79c1e79385b43740098fa9f18b0d95481d Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 15 Oct 2019 22:59:11 +0300 Subject: [PATCH] fix Overlay lag effect --- src/components/Overlay/Transition.tsx | 2 ++ src/components/Overlay/index.tsx | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Overlay/Transition.tsx b/src/components/Overlay/Transition.tsx index f7f99a35..69184d51 100644 --- a/src/components/Overlay/Transition.tsx +++ b/src/components/Overlay/Transition.tsx @@ -1,6 +1,7 @@ import * as React from 'react' export interface ITransitionProps { + extraStyle?: React.CSSProperties show: boolean } @@ -32,6 +33,7 @@ export const Transition: React.FC = props => { return mounted && (
= props => { React.useEffect(() => { document.body.classList.toggle('noscroll', props.show) - }, [props.show]) return (
= props => { height: 100%; top: 0; left: 0; - z-index: 1000000; background-color: rgb(255, 255, 255); }