intelicoreact 1.2.41 → 1.2.42

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.
@@ -254,7 +254,9 @@ function RangeSlider(_ref) {
254
254
  };
255
255
 
256
256
  var onRangeInputFocus = function onRangeInputFocus(e, type) {
257
- setIsInputFocused(type, true);
257
+ setTimeout(function () {
258
+ return setIsInputFocused(type, true);
259
+ }, 1);
258
260
  };
259
261
 
260
262
  var onRangeInputBlur = function onRangeInputBlur(e, type) {
@@ -306,7 +308,9 @@ function RangeSlider(_ref) {
306
308
  setFrezeedValues(null);
307
309
  }, [isTriggerMoved]);
308
310
  (0, _react.useEffect)(function () {
309
- onChange({
311
+ if (Object.values(isInputsFocused).every(function (v) {
312
+ return !v;
313
+ }) && !isTriggerMoved) onChange({
310
314
  from: from,
311
315
  to: to
312
316
  });
@@ -314,7 +318,7 @@ function RangeSlider(_ref) {
314
318
  from: from,
315
319
  to: to
316
320
  });
317
- }, [from, to]);
321
+ }, [from, to, isInputsFocused, isTriggerMoved]);
318
322
  (0, _react.useLayoutEffect)(function () {
319
323
  setFrom(value.from);
320
324
  setTo(value.to);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [