intelicoreact 0.3.12 → 0.3.13
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.
|
@@ -163,7 +163,7 @@ var filterToLimitLength = function filterToLimitLength(inputValue, limit) {
|
|
|
163
163
|
exports.filterToLimitLength = filterToLimitLength;
|
|
164
164
|
|
|
165
165
|
var filterPhone = function filterPhone(value) {
|
|
166
|
-
return limitLength(filterNumbers(
|
|
166
|
+
return limitLength(filterNumbers(getSafelyValue(value)), _index.MAX_PHONE_LENGTH);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
exports.filterPhone = filterPhone;
|
|
@@ -175,7 +175,7 @@ var filterNumeric = function filterNumeric(value, settings) {
|
|
|
175
175
|
decimalPlaces = _ref3.decimalPlaces;
|
|
176
176
|
|
|
177
177
|
var executor = type === 'float' ? filterFloat : formatOnlyNumbers;
|
|
178
|
-
return executor(getSafelyValue(
|
|
178
|
+
return executor(getSafelyValue(value), decimalPlaces);
|
|
179
179
|
};
|
|
180
180
|
|
|
181
181
|
exports.filterNumeric = filterNumeric;
|