ywana-core8 0.0.641 → 0.0.644

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1145,8 +1145,7 @@ var ContentType = /*#__PURE__*/function () {
1145
1145
  }).every(function (_ref3) {
1146
1146
  var name = _ref3[0],
1147
1147
  attr = _ref3[1];
1148
- console.log("validate", name, data[name], data[name] === null ? "NULL" : data[name] === undefined ? "UNDEFINED" : data[name]);
1149
- return data[name] === null ? false : data[name] === undefined ? false : _this.checkType(attr, data[name]);
1148
+ return data[name] === null ? false : data[name] === undefined ? false : data[name] === "" ? false : _this.checkType(attr, data[name]);
1150
1149
  });
1151
1150
  }
1152
1151
  /**
@@ -1474,7 +1473,12 @@ var DropDown = function DropDown(props) {
1474
1473
 
1475
1474
  var _label = option ? option.label : "";
1476
1475
 
1477
- if (editable && _label === "") setLabel(value);
1476
+ if (editable && _label === "") {
1477
+ setLabel(value);
1478
+ } else {
1479
+ setLabel(_label);
1480
+ }
1481
+
1478
1482
  if (!editable) setLabel(_label);
1479
1483
  }
1480
1484
  }, [value]);
@@ -1483,7 +1487,6 @@ var DropDown = function DropDown(props) {
1483
1487
  if (predictive) {
1484
1488
  setLabel(value);
1485
1489
  } else {
1486
- console.log('change', id, value);
1487
1490
  if (onChange) onChange(id, value);
1488
1491
  }
1489
1492
  }