Skip to content

Commit 406594f

Browse files
committed
build
1 parent 23dc7a6 commit 406594f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/lib/coerceToType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function coerceToType(value, nextType) {
2727
return '';
2828

2929
case 'boolean':
30-
return true;
30+
return typeof value === 'boolean' ? value : true;
3131

3232
case 'map':
3333
return {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-json-editor",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "A JSON editor for ReactJS",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)