@natoora-libs/core 0.1.16-dev-doug-8 → 0.1.16-dev-doug-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.
|
@@ -8016,6 +8016,7 @@ var TableDesktopNumericField = ({
|
|
|
8016
8016
|
const hasValidationError = (0, import_react36.useMemo)(() => isDirty && !validateInput?.(input), [input, validateInput, isDirty]);
|
|
8017
8017
|
const commitValue = (value) => {
|
|
8018
8018
|
if (hasValidationError || !onUpdateEditableCell || !isDirty) {
|
|
8019
|
+
setInput(oldValue.current);
|
|
8019
8020
|
return;
|
|
8020
8021
|
}
|
|
8021
8022
|
oldValue.current = value;
|
|
@@ -8148,6 +8149,7 @@ var TableDesktopTextField = ({
|
|
|
8148
8149
|
const hasValidationError = (0, import_react38.useMemo)(() => isDirty && !validateInput?.(input), [input, validateInput]);
|
|
8149
8150
|
const commitValue = (value) => {
|
|
8150
8151
|
if (hasValidationError || !onUpdateEditableCell || !isDirty) {
|
|
8152
|
+
setInput(oldValue.current);
|
|
8151
8153
|
return;
|
|
8152
8154
|
}
|
|
8153
8155
|
oldValue.current = value;
|