intelicoreact 1.1.89 → 1.1.90
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.
|
@@ -138,7 +138,7 @@ var NumericInput = function NumericInput(_ref) {
|
|
|
138
138
|
|
|
139
139
|
var handle = {
|
|
140
140
|
change: function change(e) {
|
|
141
|
-
var inputValue = e.target ? (0, _fieldValueFormatters.filterNumeric)(e.target.value, onlyNumbers) : e;
|
|
141
|
+
var inputValue = e.target ? (0, _fieldValueFormatters.filterNumeric)(e.target.value, onlyNumbers) : (0, _fieldValueFormatters.filterNumeric)(e, onlyNumbers);
|
|
142
142
|
setInputValue(inputValue.toString());
|
|
143
143
|
},
|
|
144
144
|
clear: function clear() {
|
|
@@ -289,6 +289,10 @@ var filterFloat = function filterFloat(inputValue) {
|
|
|
289
289
|
return replacer(previousValue);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
if (Number(output)) {
|
|
293
|
+
output = Number(output).toFixed(decimalPlaces);
|
|
294
|
+
}
|
|
295
|
+
|
|
292
296
|
return replacer(lastSym === '.' && previousValue.includes('.') ? previousValue : output);
|
|
293
297
|
};
|
|
294
298
|
|