@configuratorware/configurator-admingui 1.42.4 → 1.42.6

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.
@@ -46,7 +46,9 @@ var AttributeValueChip = /*#__PURE__*/function (_React$Component) {
46
46
  });
47
47
  _defineProperty(_assertThisInitialized(_this), "loadSourceDebounced", (0, _lodash.debounce)(_this.loadSource, 300));
48
48
  _defineProperty(_assertThisInitialized(_this), "onUpdateInput", function (query) {
49
- _this.loadSourceDebounced(query);
49
+ if (query !== '') {
50
+ _this.loadSourceDebounced(query);
51
+ }
50
52
  });
51
53
  _defineProperty(_assertThisInitialized(_this), "onRequestAdd", function (chip) {
52
54
  var _this$props = _this.props,
@@ -177,6 +179,7 @@ var AttributeValueChip = /*#__PURE__*/function (_React$Component) {
177
179
  onBlur = this.onBlur,
178
180
  onFocus = this.onFocus,
179
181
  onInputEnterKey = this.onInputEnterKey;
182
+ var isNumericInput = this.isNumericAttributeType();
180
183
  return /*#__PURE__*/_react["default"].createElement(_ChipInput["default"], {
181
184
  floatingLabelText: label,
182
185
  onBlur: onBlur,
@@ -189,9 +192,9 @@ var AttributeValueChip = /*#__PURE__*/function (_React$Component) {
189
192
  onRequestDelete: onRequestDelete,
190
193
  openOnFocus: openOnFocus,
191
194
  filter: autoLoad === false ? _AutoComplete.Filters.defaultFilter : _AutoComplete.Filters.fuzzyFilter,
192
- onInputEnterKey: onInputEnterKey,
193
- resetOnInputEnterKey: true,
194
- textFieldType: 'number',
195
+ onInputEnterKey: isNumericInput ? onInputEnterKey : function () {},
196
+ resetOnInputEnterKey: isNumericInput,
197
+ textFieldType: isNumericInput ? 'number' : 'text',
195
198
  placeholder: placeholder
196
199
  });
197
200
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-admingui",
3
- "version": "1.42.4",
3
+ "version": "1.42.6",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@babel/polyfill": "^7.12.1",
8
- "@configuratorware/scripts": "1.42.4",
8
+ "@configuratorware/scripts": "1.42.6",
9
9
  "@material-ui/core": "^3.9.4",
10
10
  "@material-ui/icons": "^3.0.2",
11
11
  "@tweenjs/tween.js": "^17.6.0",
@@ -28,7 +28,7 @@
28
28
  "react-redux-i18n": "^1.9.3",
29
29
  "react-router": "^3.2.6",
30
30
  "react-sortable-hoc": "^1.11.0",
31
- "redhotmagma-visualization": "1.42.4",
31
+ "redhotmagma-visualization": "1.42.6",
32
32
  "redux": "^4.1.0",
33
33
  "redux-logger": "^3.0.6",
34
34
  "redux-persist": "^5.10.0",