We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede184b commit 2726fc1Copy full SHA for 2726fc1
src/components/_helpers/resolveContextOrProp.js
@@ -1,4 +1,7 @@
1
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
5
if (contextValue === false || contextValue === null) {
6
return propValue;
7
}
0 commit comments