ywana-core8 0.0.643 → 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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +9 -6
- package/src/html/textfield.test.js +3 -1
package/dist/index.cjs
CHANGED
@@ -1473,7 +1473,12 @@ var DropDown = function DropDown(props) {
|
|
1473
1473
|
|
1474
1474
|
var _label = option ? option.label : "";
|
1475
1475
|
|
1476
|
-
if (editable && _label === "")
|
1476
|
+
if (editable && _label === "") {
|
1477
|
+
setLabel(value);
|
1478
|
+
} else {
|
1479
|
+
setLabel(_label);
|
1480
|
+
}
|
1481
|
+
|
1477
1482
|
if (!editable) setLabel(_label);
|
1478
1483
|
}
|
1479
1484
|
}, [value]);
|
@@ -1482,7 +1487,6 @@ var DropDown = function DropDown(props) {
|
|
1482
1487
|
if (predictive) {
|
1483
1488
|
setLabel(value);
|
1484
1489
|
} else {
|
1485
|
-
console.log('change', id, value);
|
1486
1490
|
if (onChange) onChange(id, value);
|
1487
1491
|
}
|
1488
1492
|
}
|