From 716f5ab8ae3fe6afc3477095b91ae45da045b285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Barbet?= Date: Thu, 6 Feb 2020 09:16:46 +0000 Subject: [PATCH] fix: make sure we don't enable scroll by mistake --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 747abe19..80926382 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -486,7 +486,7 @@ export class Modalize extends React.C if (this.beginScrollYValue === 0) { const modalPosition = Boolean(destSnapPoint <= 0) ? 'top' : 'initial'; - if (modalPosition === 'top') { + if (!adjustToContentHeight && modalPosition === 'top') { this.setState({ disableScroll: false }); }