@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.
package/dist/components/index.js
CHANGED
|
@@ -7843,6 +7843,7 @@ var TableDesktopNumericField = ({
|
|
|
7843
7843
|
const hasValidationError = useMemo4(() => isDirty && !validateInput?.(input), [input, validateInput, isDirty]);
|
|
7844
7844
|
const commitValue = (value) => {
|
|
7845
7845
|
if (hasValidationError || !onUpdateEditableCell || !isDirty) {
|
|
7846
|
+
setInput(oldValue.current);
|
|
7846
7847
|
return;
|
|
7847
7848
|
}
|
|
7848
7849
|
oldValue.current = value;
|
|
@@ -7975,6 +7976,7 @@ var TableDesktopTextField = ({
|
|
|
7975
7976
|
const hasValidationError = useMemo5(() => isDirty && !validateInput?.(input), [input, validateInput]);
|
|
7976
7977
|
const commitValue = (value) => {
|
|
7977
7978
|
if (hasValidationError || !onUpdateEditableCell || !isDirty) {
|
|
7979
|
+
setInput(oldValue.current);
|
|
7978
7980
|
return;
|
|
7979
7981
|
}
|
|
7980
7982
|
oldValue.current = value;
|