awing-library 2.1.206-dev → 2.1.207-dev
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.
|
@@ -176,10 +176,7 @@ function DataInput(props) {
|
|
|
176
176
|
}
|
|
177
177
|
case 'number': {
|
|
178
178
|
return ((0, jsx_runtime_1.jsx)(AWING_1.NumberFormat, __assign({ id: fieldName.toString(), name: fieldName.toString(), fullWidth: true, variant: "standard" }, other, { value: value !== null && value !== void 0 ? value : '', onChange: function (event) {
|
|
179
|
-
|
|
180
|
-
var newValue = fieldDefinition.isFloat
|
|
181
|
-
? event.target.value
|
|
182
|
-
: Number(event.target.value);
|
|
179
|
+
var newValue = Number(event.target.value);
|
|
183
180
|
onChange(newValue, checkValidationValue(fieldDefinition, newValue));
|
|
184
181
|
}, error: error, helperText: !disableHelperText && error
|
|
185
182
|
? (_h = fieldDefinition.helperText) !== null && _h !== void 0 ? _h : t('Common.InvalidData')
|