Skip to content

Commit

Permalink
fixup! fixup! Fix layout context prop resolving for boolean types (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmelmicro committed Oct 23, 2024
1 parent ede184b commit 2726fc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/_helpers/resolveContextOrProp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const resolveContextOrProp = (contextValue, propValue) => {
// We need to test:
// * `false` - for when the `contextValue` is boolean
// * `null` - for when the `contextValue` is non-boolean
if (contextValue === false || contextValue === null) {
return propValue;
}
Expand Down

0 comments on commit 2726fc1

Please sign in to comment.