@@ -425,7 +425,7 @@ return /******/ (function(modules) { // webpackBootstrap
425
425
displayName : 'CheckBox' ,
426
426
427
427
handleChange : function ( event ) {
428
- var val = event . target . checked ;
428
+ var val = event . target . checked ? true : null ;
429
429
this . props . update ( this . props . path , val , val ) ;
430
430
} ,
431
431
render : function ( ) {
@@ -522,15 +522,15 @@ return /******/ (function(modules) { // webpackBootstrap
522
522
} ,
523
523
array : function ( fields , props ) {
524
524
var move = function ( props , i , n ) {
525
- return function ( to ) {
525
+ return function ( to ) {
526
526
if ( ! canMoveUp ( i , n ) && ! canMoveDown ( i , n ) ) return ;
527
527
var newList = props . getValue ( props . path ) ;
528
528
var value = newList . splice ( to , 1 ) ;
529
529
530
530
newList . splice ( i , 0 , value [ 0 ] ) ;
531
531
props . update ( props . path , newList , newList ) ;
532
532
} ;
533
- } ;
533
+ } ;
534
534
var canMoveUp = function ( i , n ) {
535
535
return i > 0 && i < n - 1 ;
536
536
} ;
@@ -648,7 +648,7 @@ return /******/ (function(modules) { // webpackBootstrap
648
648
var dereferenced = schema . oneOf . map ( function ( alt ) {
649
649
return resolve ( alt , context ) ;
650
650
} ) ;
651
-
651
+
652
652
options = dereferenced . map ( function ( alt ) {
653
653
return ou . getIn ( alt , [ 'properties' , selector , 'enum' , 0 ] ) || "" ;
654
654
} ) ;
@@ -885,7 +885,6 @@ return /******/ (function(modules) { // webpackBootstrap
885
885
module . exports = InputField ;
886
886
887
887
888
-
889
888
/***/ } ,
890
889
/* 12 */
891
890
/***/ function ( module , exports ) {
@@ -1191,6 +1190,7 @@ return /******/ (function(modules) { // webpackBootstrap
1191
1190
'use strict' ;
1192
1191
1193
1192
var ou = __webpack_require__ ( 3 ) ;
1193
+ var alternative = __webpack_require__ ( 8 ) ;
1194
1194
1195
1195
var checkNumber = function ( schema , instance ) {
1196
1196
var errors = [ ] ;
@@ -1343,6 +1343,9 @@ return /******/ (function(modules) { // webpackBootstrap
1343
1343
if ( instance == null )
1344
1344
instance = { } ;
1345
1345
1346
+ var alternativeSchema = alternative . schema ( instance , schema , context ) ;
1347
+ schema = alternativeSchema || schema ;
1348
+
1346
1349
if ( instance . constructor !== Object )
1347
1350
result . push ( { path : [ ] , errors : [ 'must be a plain object' ] } ) ;
1348
1351
else {
0 commit comments