From ef3e353685cd82db796afff53cbd46ac8bf943b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BE=D1=81=D1=83=D0=B4=20=D0=A1?= =?UTF-8?q?=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB?= =?UTF-8?q?=D0=B0=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 19 Apr 2018 16:16:52 +0500 Subject: [PATCH] fixed bug with ModalContext.Provider --- components/Modal/Modal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Modal/Modal.tsx b/components/Modal/Modal.tsx index 1e25b89855d..b589bd8df05 100644 --- a/components/Modal/Modal.tsx +++ b/components/Modal/Modal.tsx @@ -1,17 +1,13 @@ import * as React from 'react'; -import * as classNames from 'classnames'; import * as events from 'add-event-listener'; import * as ReactDOM from 'react-dom'; -import getScrollWidth from '../../lib/dom/getScrollWidth'; import LayoutEvents from '../../lib/LayoutEvents'; import RenderContainer from '../RenderContainer'; import ZIndex from '../ZIndex'; import stopPropagation from '../../lib/events/stopPropagation'; -import Sticky from '../Sticky'; import HideBodyVerticalScroll from '../HideBodyVerticalScroll'; import ModalStack from '../ModalStack'; import { EventSubscription } from 'fbemitter'; -import createReactContext = require('create-react-context'); import styles = require('./Modal.less'); import { CloseProps, ModalContext, ModalContextProps } from './ModalContext'; @@ -151,7 +147,11 @@ class Modal extends React.Component { /> ) : null} - {this.props.children} +
+ {' '} + {/*