Skip to content

Commit 2726fc1

Browse files
committed
fixup! fixup! Fix layout context prop resolving for boolean types (#567)
1 parent ede184b commit 2726fc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/_helpers/resolveContextOrProp.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export const resolveContextOrProp = (contextValue, propValue) => {
2+
// We need to test:
3+
// * `false` - for when the `contextValue` is boolean
4+
// * `null` - for when the `contextValue` is non-boolean
25
if (contextValue === false || contextValue === null) {
36
return propValue;
47
}

0 commit comments

Comments
 (0)