From 98684d11d34e9c37a3dcd9db5ad37beb1e622cf7 Mon Sep 17 00:00:00 2001 From: David Menc Date: Tue, 17 Sep 2024 09:58:19 +0200 Subject: [PATCH] Fix layout context prop resolving for boolean types (#567) --- src/components/_helpers/resolveContextOrProp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/_helpers/resolveContextOrProp.js b/src/components/_helpers/resolveContextOrProp.js index 4bfb49e1..7b45cfd6 100644 --- a/src/components/_helpers/resolveContextOrProp.js +++ b/src/components/_helpers/resolveContextOrProp.js @@ -1,4 +1,8 @@ export const resolveContextOrProp = (contextValue, propValue) => { + if (contextValue === false) { + return propValue; + } + if (contextValue != null) { return contextValue; }