Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix: update modal with ie11hack prop noissue
Browse files Browse the repository at this point in the history
  • Loading branch information
cboyce183 committed Nov 3, 2020
1 parent d380bca commit 8b3a4ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function CenterOrFullscreen({
fullscreen,
spacing,
width,
disableIE11Hack
}) {
if (fullscreen) {
return (
Expand All @@ -61,6 +62,7 @@ function CenterOrFullscreen({
p={spacing}
contentWidth={width}
breakpoints={breakpoints}
disableIE11Hack={disableIE11Hack}
>
{children}
</CenterContent>
Expand All @@ -75,6 +77,7 @@ function Modal({
onRequestClose,
spacing,
width,
disableIE11Hack = false,
...otherProps
}) {
const {modalRef, isAtTop} = useModalManager({
Expand Down Expand Up @@ -103,6 +106,7 @@ function Modal({
spacing={spacing}
width={width}
breakpoints={breakpoints}
disableIE11Hack={disableIE11Hack}
>
{isAtTop && <Overlay onClick={onRequestClose} />}
<FocusLock as={ContentWrapper}>{children}</FocusLock>
Expand Down

0 comments on commit 8b3a4ca

Please sign in to comment.