ywana-core8 0.0.642 → 0.0.645
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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentType.js +0 -1
- package/src/html/textfield.js +9 -6
- package/src/html/textfield.test.js +3 -1
package/dist/index.modern.js
CHANGED
@@ -1137,7 +1137,6 @@ var ContentType = /*#__PURE__*/function () {
|
|
1137
1137
|
}).every(function (_ref3) {
|
1138
1138
|
var name = _ref3[0],
|
1139
1139
|
attr = _ref3[1];
|
1140
|
-
console.log("validate", name, data[name], data[name] === null ? "NULL" : data[name] === undefined ? "UNDEFINED" : data[name]);
|
1141
1140
|
return data[name] === null ? false : data[name] === undefined ? false : data[name] === "" ? false : _this.checkType(attr, data[name]);
|
1142
1141
|
});
|
1143
1142
|
}
|
@@ -1466,7 +1465,12 @@ var DropDown = function DropDown(props) {
|
|
1466
1465
|
|
1467
1466
|
var _label = option ? option.label : "";
|
1468
1467
|
|
1469
|
-
if (editable && _label === "")
|
1468
|
+
if (editable && _label === "") {
|
1469
|
+
setLabel(value);
|
1470
|
+
} else {
|
1471
|
+
setLabel(_label);
|
1472
|
+
}
|
1473
|
+
|
1470
1474
|
if (!editable) setLabel(_label);
|
1471
1475
|
}
|
1472
1476
|
}, [value]);
|
@@ -1475,7 +1479,6 @@ var DropDown = function DropDown(props) {
|
|
1475
1479
|
if (predictive) {
|
1476
1480
|
setLabel(value);
|
1477
1481
|
} else {
|
1478
|
-
console.log('change', id, value);
|
1479
1482
|
if (onChange) onChange(id, value);
|
1480
1483
|
}
|
1481
1484
|
}
|