Skip to content

Commit 16463f2

Browse files
committed
Fixes #857
1 parent 51c8418 commit 16463f2

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This alpha fixes a bunch of array and destroyStrategy bugs.
1414
- #689 DestroyStrategy does not trigger when field no longer meets condition
1515
- #750 Removing an invalid array item doesn't work properly
1616
- #769 Model inside Array is not cleaned when Condition fails
17+
- #857 **Regression** boolean values only saving true to model
1718

1819
v1.0.0-alpha.3
1920
--------------

dist/angular-schema-form.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-schema-form
33
* @version 1.0.0-alpha.4
4-
* @date Fri, 14 Apr 2017 16:07:04 GMT
4+
* @date Sat, 15 Apr 2017 08:27:27 GMT
55
* @link https://github.com/json-schema-form/angular-schema-form
66
* @license MIT
77
* Copyright (c) 2014-2017 JSON Schema Form
@@ -86,8 +86,8 @@ module.exports = angular;
8686

8787
/* WEBPACK VAR INJECTION */(function(global, setImmediate) {/*!
8888
* json-schema-form-core
89-
* @version 1.0.0-alpha.3
90-
* @date Mon, 27 Mar 2017 13:05:31 GMT
89+
* @version 1.0.0-alpha.4
90+
* @date Sat, 15 Apr 2017 08:25:55 GMT
9191
* @link https://github.com/json-schema-form/json-schema-form-core
9292
* @license MIT
9393
* Copyright (c) 2014-2017 JSON Schema Form
@@ -2596,7 +2596,7 @@ function validate(form, value) {
25962596
};
25972597

25982598
var valueWrap = {};
2599-
if (!!value) {
2599+
if (typeof value !== 'undefined') {
26002600
valueWrap[propName] = value;
26012601
};
26022602

0 commit comments

Comments
 (0)