intelicoreact 1.5.29 → 1.5.31
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.
|
@@ -230,7 +230,9 @@ const Input = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
230
230
|
} = (0, _utils.getIsOnlyAnObject)(onlyNumbers) ? onlyNumbers : {};
|
|
231
231
|
let minusSymbol;
|
|
232
232
|
let inputValue = e.target ? e.target.value : e;
|
|
233
|
-
if (isPseudoPasswordMode) inputValue = inputValue.includes(HIDE_SYMBOL) ? handle.processPseudoValue(inputValue, value, e) : inputValue;
|
|
233
|
+
if (isPseudoPasswordMode) inputValue = inputValue.includes(HIDE_SYMBOL) ? handle.processPseudoValue(inputValue, value, e) : inputValue; // If user typed comma(',') replace it to dot('.') for float value typing
|
|
234
|
+
|
|
235
|
+
if (isPriceInput && inputValue.charAt(inputValue.length - 1) === ',') inputValue = inputValue.substring(0, inputValue.length - 1).concat('.');
|
|
234
236
|
if (isUseBitDepthPoints) inputValue = (0, _fieldValueFormatters.formatToRemoveComa)(inputValue);
|
|
235
237
|
if (onlyNumbers) inputValue = inputValue.replace(/,/g, ".");
|
|
236
238
|
|
|
@@ -7,7 +7,7 @@ exports.NUMERIC_KEYBOARD = exports.EMAIL_KEYBOARD = exports.ALL_KEYBOARD_TYPES =
|
|
|
7
7
|
//? Удобно использовать для расширения объекта атрибутов
|
|
8
8
|
const ALL_KEYBOARD_TYPES = {
|
|
9
9
|
numeric: {
|
|
10
|
-
inputMode: "
|
|
10
|
+
inputMode: "decimal"
|
|
11
11
|
},
|
|
12
12
|
email: {
|
|
13
13
|
inputMode: "email"
|