intelicoreact 1.3.13 → 1.3.15

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.
@@ -77,19 +77,23 @@ var InputCurrency = function InputCurrency(_ref) {
77
77
  if (clearValue < min) {
78
78
  setInputValue("".concat(currencySymbol || '$').concat(formatNumberWithCommas(min)));
79
79
  onChange(min);
80
+ return false;
80
81
  }
81
82
 
82
83
  if (max && clearValue > max) {
83
84
  setInputValue("".concat(currencySymbol || '$').concat(formatNumberWithCommas(max)));
84
85
  onChange(max);
86
+ return false;
85
87
  }
88
+
89
+ return true;
86
90
  };
87
91
 
88
92
  (0, _react.useEffect)(function () {
89
93
  var _inputValue$toString;
90
94
 
91
95
  if (value.toString() !== (inputValue === null || inputValue === void 0 ? void 0 : (_inputValue$toString = inputValue.toString()) === null || _inputValue$toString === void 0 ? void 0 : _inputValue$toString.replace(/[^0-9]/g, ''))) {
92
- checkMinMax(null, value);
96
+ if (checkMinMax(null, value)) setInputValue("".concat(currencySymbol || '$').concat(formatNumberWithCommas(value)));
93
97
  }
94
98
  }, [value]);
95
99
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -23,6 +23,8 @@ var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
23
23
 
24
24
  var _dependencies = require("./dependencies");
25
25
 
26
+ var _useIsMobile2 = _interopRequireDefault(require("../../../Functions/useIsMobile"));
27
+
26
28
  var _OpenedPart = _interopRequireDefault(require("./components/OpenedPart"));
27
29
 
28
30
  var _Arrow = _interopRequireDefault(require("../../UI/Arrow/Arrow"));
@@ -72,6 +74,10 @@ var InputDateRange = function InputDateRange(props) {
72
74
  isDontLimitFuture = props.isDontLimitFuture,
73
75
  isListTop = props.isListTop,
74
76
  isAltArrows = props.isAltArrows;
77
+
78
+ var _useIsMobile = (0, _useIsMobile2.default)(),
79
+ isMobile = _useIsMobile.isMobile;
80
+
75
81
  var formatedMinDate = checkFormat(minDate, minMaxDateParseFormat);
76
82
  var formatedMaxDate = checkFormat(maxDate, minMaxDateParseFormat);
77
83
  var momentMinDate = (0, _momentTimezone.default)(formatedMinDate, minMaxDateParseFormat).startOf('day');
@@ -95,7 +101,7 @@ var InputDateRange = function InputDateRange(props) {
95
101
  setIsCompare = _useState4[1];
96
102
 
97
103
  var dropdownContainers = document.getElementsByClassName('dropdown__container');
98
- var ref = !isUseAbs ? (0, _dependencies.useClickOutside)(toggleOff, dropdownContainers) : (0, _react.useRef)(null);
104
+ var ref = !isUseAbs && !isMobile ? (0, _dependencies.useClickOutside)(toggleOff, dropdownContainers) : (0, _react.useRef)(null);
99
105
  var internalContainerRef = (0, _react.useRef)(null);
100
106
 
101
107
  var _useState5 = (0, _react.useState)(Math.random().toString(16).slice(2)),
@@ -16,6 +16,7 @@
16
16
  overflow-y: auto;
17
17
  box-sizing: border-box;
18
18
  border-radius: 16px 16px 0 0;
19
+ z-index: 100;
19
20
 
20
21
  .modal {
21
22
  margin-top: 16px!important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [