ywana-core8 0.0.365 → 0.0.368

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
@@ -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
- }), !readOnly && canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
991
+ }), canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
996
992
  icon: "close",
997
993
  clickable: true,
998
994
  size: "small",
@@ -1131,6 +1127,7 @@
1131
1127
  }
1132
1128
 
1133
1129
  function select(event) {
1130
+ console.log(event);
1134
1131
  var next = event.target.getAttribute("value");
1135
1132
  var option = options.find(function (option) {
1136
1133
  return option.value === next;
@@ -1165,9 +1162,9 @@
1165
1162
  return /*#__PURE__*/React__default["default"].createElement("div", {
1166
1163
  className: "dropdown"
1167
1164
  }, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
1168
- 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,