tenjin-ui-kit 0.2.67 → 0.2.68

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.
@@ -76,6 +76,7 @@ var InputWithChip = function InputWithChip(_ref) {
76
76
  });
77
77
  });
78
78
  };
79
+ console.log(chips, '0000000000000');
79
80
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.FormControl, {
80
81
  variant: "standard",
81
82
  fullWidth: fullWidth
@@ -97,7 +98,9 @@ var InputWithChip = function InputWithChip(_ref) {
97
98
  disabled: isDisabled,
98
99
  onKeyDown: handleAddChip,
99
100
  onBlur: function onBlur(e) {
100
- setChips([]);
101
+ if (!(chips !== null && chips !== void 0 && chips.length) > 0) {
102
+ setChips([]);
103
+ }
101
104
  if (e.target.value !== '') {
102
105
  handleAddChip(e);
103
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.2.67",
3
+ "version": "0.2.68",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },