hoc-react-datgui
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -54,3 +54,3 @@ 'use strict'; | ||
} else if (type === 'boolean') { | ||
return propValue || true; | ||
return propValue === false ? propValue : propValue || true; | ||
} else if (type === 'function') { | ||
@@ -57,0 +57,0 @@ return propValue || function () {}; |
{ | ||
"name": "hoc-react-datgui", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "HOC adding a dat.GUI plugged to React.Component props", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -40,3 +40,3 @@ import mapValues from 'lodash/mapValues' | ||
} else if (type === 'boolean') { | ||
return propValue || true | ||
return propValue === false ? propValue : (propValue || true) | ||
} else if (type === 'function') { | ||
@@ -43,0 +43,0 @@ return propValue || (() => {}) |
527741