intelicoreact 0.2.98 → 0.2.99

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.
@@ -88,18 +88,18 @@ var RangeInputs = function RangeInputs(_ref) {
88
88
  var rangeValidation = function rangeValidation(e, key) {
89
89
  var oppositeKey = key === 'from' ? 'to' : 'from';
90
90
 
91
- if (!(valueObj !== null && valueObj !== void 0 && valueObj.from) && !(valueObj !== null && valueObj !== void 0 && valueObj.to)) {
91
+ if (!(valueObj !== null && valueObj !== void 0 && valueObj.from) && !(valueObj !== null && valueObj !== void 0 && valueObj.to) && typeof (valueObj === null || valueObj === void 0 ? void 0 : valueObj.from) !== 'string' && typeof (valueObj === null || valueObj === void 0 ? void 0 : valueObj.to) !== 'string') {
92
92
  setError({
93
93
  from: '',
94
94
  to: ''
95
95
  });
96
96
  setInnerError === null || setInnerError === void 0 ? void 0 : setInnerError('');
97
97
  return e;
98
- } else if (!valueObj[oppositeKey]) {
98
+ } else if (!valueObj[oppositeKey] && typeof valueObj[oppositeKey] !== 'string') {
99
99
  var mustToFocus = key === 'from' ? inputToRef.current : inputFromRef.current;
100
100
  mustToFocus.focus();
101
101
  } else if (!isValidRange(valueObj === null || valueObj === void 0 ? void 0 : valueObj.from, valueObj === null || valueObj === void 0 ? void 0 : valueObj.to)) {
102
- if (!(valueObj !== null && valueObj !== void 0 && valueObj.from)) setError(_objectSpread(_objectSpread({}, error), {}, {
102
+ if (!(valueObj !== null && valueObj !== void 0 && valueObj.from) && typeof (valueObj === null || valueObj === void 0 ? void 0 : valueObj.from) !== 'string') setError(_objectSpread(_objectSpread({}, error), {}, {
103
103
  from: 'Invalid range'
104
104
  }));else setError(_objectSpread(_objectSpread({}, error), {}, {
105
105
  to: 'Invalid range'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.98",
3
+ "version": "0.2.99",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [