Skip to content

Commit 0e38605

Browse files
vvoralvoralv
and
voralv
authored
fix: fix iOS problem with scroll not working in Safari (#464)
Co-authored-by: voralv <vladimir.voral@socialbakers.com>
1 parent 3e9201d commit 0e38605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-responsive-modal/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export const Modal = ({
303303
}}
304304
/>
305305
<div
306+
ref={refModal}
306307
className={cx(
307308
classes.modalContainer,
308309
center && classes.modalContainerCenter,
@@ -313,7 +314,6 @@ export const Modal = ({
313314
onClick={handleClickOverlay}
314315
>
315316
<div
316-
ref={refModal}
317317
className={cx(classes.modal, classNames?.modal)}
318318
style={{
319319
animation: `${modalAnimation} ${animationDuration}ms`,

0 commit comments

Comments
 (0)