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.modern.js
CHANGED
@@ -1465,7 +1465,12 @@ var DropDown = function DropDown(props) {
|
|
1465
1465
|
|
1466
1466
|
var _label = option ? option.label : "";
|
1467
1467
|
|
1468
|
-
if (editable && _label === "")
|
1468
|
+
if (editable && _label === "") {
|
1469
|
+
setLabel(value);
|
1470
|
+
} else {
|
1471
|
+
setLabel(_label);
|
1472
|
+
}
|
1473
|
+
|
1469
1474
|
if (!editable) setLabel(_label);
|
1470
1475
|
}
|
1471
1476
|
}, [value]);
|
@@ -1474,7 +1479,6 @@ var DropDown = function DropDown(props) {
|
|
1474
1479
|
if (predictive) {
|
1475
1480
|
setLabel(value);
|
1476
1481
|
} else {
|
1477
|
-
console.log('change', id, value);
|
1478
1482
|
if (onChange) onChange(id, value);
|
1479
1483
|
}
|
1480
1484
|
}
|