From 46137aa8d2ade3804c03404cebd768f7286ae5cd Mon Sep 17 00:00:00 2001 From: Bowen Tan Date: Wed, 16 Feb 2022 10:53:06 +0800 Subject: [PATCH] Fix the bug that page cannot scroll when chakra dialog is openning. --- packages/chakra-ui-lib/src/components/Dialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/chakra-ui-lib/src/components/Dialog.tsx b/packages/chakra-ui-lib/src/components/Dialog.tsx index 5e4ca4d5..17a0e969 100644 --- a/packages/chakra-ui-lib/src/components/Dialog.tsx +++ b/packages/chakra-ui-lib/src/components/Dialog.tsx @@ -146,6 +146,7 @@ export default implementRuntimeComponent({ onClose={() => setIsOpen(false)} trapFocus={false} portalProps={containerRef.current ? portalProps : undefined} + blockScrollOnMount={false} >