intelicoreact 0.1.97 → 0.1.98
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.
|
@@ -189,10 +189,10 @@ var NumericInput = function NumericInput(_ref) {
|
|
|
189
189
|
if (onKeyUp) onKeyUp(e.keyCode, e.target.value);
|
|
190
190
|
},
|
|
191
191
|
decrement: function decrement(e) {
|
|
192
|
-
handle.change(+intMemoVal
|
|
192
|
+
handle.change(+intMemoVal - +numStep);
|
|
193
193
|
},
|
|
194
194
|
increment: function increment(e) {
|
|
195
|
-
handle.change(+intMemoVal
|
|
195
|
+
handle.change(+intMemoVal + +numStep);
|
|
196
196
|
}
|
|
197
197
|
}; //Check Outside Click
|
|
198
198
|
|
|
@@ -222,7 +222,7 @@ var NumericInput = function NumericInput(_ref) {
|
|
|
222
222
|
(0, _react.useEffect)(function () {
|
|
223
223
|
if (inputValue !== value) setIsFocused(true);
|
|
224
224
|
setInputValueFormated(isPriceInput ? isFocused ? (0, _fieldValueFormatters.formatToRemoveComa)(inputValue) : (0, _fieldValueFormatters.formatToAddBitDepthPoints)(inputValue) : inputValue);
|
|
225
|
-
setIntMemoVal(
|
|
225
|
+
setIntMemoVal((0, _fieldValueFormatters.formatToRemoveComa)(inputValue));
|
|
226
226
|
if (typeof onChange === 'function') onChange(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toString());
|
|
227
227
|
}, [inputValue]); //On Integer Value Change
|
|
228
228
|
|
|
@@ -281,7 +281,7 @@ var NumericInput = function NumericInput(_ref) {
|
|
|
281
281
|
} : {});
|
|
282
282
|
|
|
283
283
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({}, uniProps, {
|
|
284
|
-
value: value,
|
|
284
|
+
value: (0, _fieldValueFormatters.formatToAddBitDepthPoints)((0, _fieldValueFormatters.formatToRemoveComa)(value)),
|
|
285
285
|
ref: inputRef,
|
|
286
286
|
type: "text"
|
|
287
287
|
})), /*#__PURE__*/_react.default.createElement("div", {
|