drf-react-by-schema 0.27.8 → 0.27.9
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.
|
@@ -64,7 +64,7 @@ const GridDecimalInput = (props) => {
|
|
|
64
64
|
}, [hasFocus]);
|
|
65
65
|
const prefixFinal = isCurrency ? 'R$ ' : prefix !== '' ? `${prefix} ` : '';
|
|
66
66
|
const suffixFinal = suffix !== '' ? ` ${suffix}` : '';
|
|
67
|
-
const decimalScale = decimalPlaces
|
|
67
|
+
const decimalScale = typeof decimalPlaces === 'undefined' ? 2 : decimalPlaces;
|
|
68
68
|
const handleChange = (newValue) => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
69
|
yield apiRef.current.setEditCellValue({ id, field, value: newValue });
|
|
70
70
|
});
|
package/package.json
CHANGED