ywana-core8 0.0.365 → 0.0.366
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 +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +3 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.css +5 -0
- package/src/html/textfield.js +2 -4
- package/src/html/textfield.test.js +3 -2
package/dist/index.umd.js
CHANGED
@@ -949,8 +949,6 @@
|
|
949
949
|
}
|
950
950
|
|
951
951
|
function focus() {
|
952
|
-
console.log("FOCUS");
|
953
|
-
|
954
952
|
if (site && site.changeFocus) {
|
955
953
|
site.changeFocus({
|
956
954
|
lose: function lose() {// DO NOTHING
|
@@ -960,8 +958,6 @@
|
|
960
958
|
}
|
961
959
|
|
962
960
|
function focusOut() {
|
963
|
-
console.log("FOCUS OUT");
|
964
|
-
|
965
961
|
if (site && site.changeFocus) {
|
966
962
|
site.changeFocus({
|
967
963
|
lose: function lose() {// DO NOTHING
|
@@ -992,7 +988,7 @@
|
|
992
988
|
onFocus: focus,
|
993
989
|
onBlur: focusOut,
|
994
990
|
readOnly: readOnly
|
995
|
-
}),
|
991
|
+
}), canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
996
992
|
icon: "close",
|
997
993
|
clickable: true,
|
998
994
|
size: "small",
|
@@ -1167,7 +1163,8 @@
|
|
1167
1163
|
}, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
|
1168
1164
|
onClick: toggle,
|
1169
1165
|
value: label,
|
1170
|
-
onChange: change
|
1166
|
+
onChange: change,
|
1167
|
+
readOnly: !predictive
|
1171
1168
|
})), !readOnly ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
1172
1169
|
icon: "expand_more",
|
1173
1170
|
clickable: true,
|