Skip to content

Commit

Permalink
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 Sep 17, 2024
1 parent d532592 commit 98684d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/_helpers/resolveContextOrProp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export const resolveContextOrProp = (contextValue, propValue) => {
if (contextValue === false) {
return propValue;
}

if (contextValue != null) {
return contextValue;
}
Expand Down

0 comments on commit 98684d1

Please sign in to comment.