Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit ad9132d

Browse files
committed
Build
1 parent 86979b6 commit ad9132d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

dist/react-json-editor.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ return /******/ (function(modules) { // webpackBootstrap
425425
displayName: 'CheckBox',
426426

427427
handleChange: function(event) {
428-
var val = event.target.checked;
428+
var val = event.target.checked ? true : null;
429429
this.props.update(this.props.path, val, val);
430430
},
431431
render: function() {
@@ -522,15 +522,15 @@ return /******/ (function(modules) { // webpackBootstrap
522522
},
523523
array: function(fields, props) {
524524
var move = function(props, i, n) {
525-
return function(to) {
525+
return function(to) {
526526
if(!canMoveUp(i, n) && !canMoveDown(i, n)) return;
527527
var newList = props.getValue(props.path);
528528
var value = newList.splice(to, 1);
529529

530530
newList.splice(i, 0, value[0]);
531531
props.update(props.path, newList, newList);
532532
};
533-
};
533+
};
534534
var canMoveUp = function(i, n) {
535535
return i > 0 && i < n - 1;
536536
};
@@ -648,7 +648,7 @@ return /******/ (function(modules) { // webpackBootstrap
648648
var dereferenced = schema.oneOf.map(function(alt) {
649649
return resolve(alt, context);
650650
});
651-
651+
652652
options = dereferenced.map(function(alt) {
653653
return ou.getIn(alt, [ 'properties', selector, 'enum', 0 ]) || "";
654654
});
@@ -885,7 +885,6 @@ return /******/ (function(modules) { // webpackBootstrap
885885
module.exports = InputField;
886886

887887

888-
889888
/***/ },
890889
/* 12 */
891890
/***/ function(module, exports) {
@@ -1191,6 +1190,7 @@ return /******/ (function(modules) { // webpackBootstrap
11911190
'use strict';
11921191

11931192
var ou = __webpack_require__(3);
1193+
var alternative = __webpack_require__(8);
11941194

11951195
var checkNumber = function(schema, instance) {
11961196
var errors = [];
@@ -1343,6 +1343,9 @@ return /******/ (function(modules) { // webpackBootstrap
13431343
if (instance == null)
13441344
instance = {};
13451345

1346+
var alternativeSchema = alternative.schema(instance, schema, context);
1347+
schema = alternativeSchema || schema;
1348+
13461349
if (instance.constructor !== Object)
13471350
result.push({ path: [], errors: ['must be a plain object'] });
13481351
else {

0 commit comments

Comments
 (0)