ywana-core8 0.0.364 → 0.0.367

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.umd.js CHANGED
@@ -957,6 +957,15 @@
957
957
  }
958
958
  }
959
959
 
960
+ function focusOut() {
961
+ if (site && site.changeFocus) {
962
+ site.changeFocus({
963
+ lose: function lose() {// DO NOTHING
964
+ }
965
+ });
966
+ }
967
+ }
968
+
960
969
  function clear() {
961
970
  if (onChange) onChange(id, "");
962
971
  }
@@ -977,8 +986,9 @@
977
986
  onChange: change,
978
987
  onKeyDown: onKeyPress,
979
988
  onFocus: focus,
989
+ onBlur: focusOut,
980
990
  readOnly: readOnly
981
- }), !readOnly && canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
991
+ }), canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
982
992
  icon: "close",
983
993
  clickable: true,
984
994
  size: "small",
@@ -1153,7 +1163,8 @@
1153
1163
  }, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
1154
1164
  onClick: toggle,
1155
1165
  value: label,
1156
- onChange: change
1166
+ onChange: change,
1167
+ readOnly: !predictive
1157
1168
  })), !readOnly ? /*#__PURE__*/React__default["default"].createElement(Icon, {
1158
1169
  icon: "expand_more",
1159
1170
  clickable: true,