fix: formula field should trriger onchange when value change (#3573)

This commit is contained in:
katherinehhh 2024-02-28 15:54:01 +08:00 committed by GitHub
parent 288bb04458
commit 43597a4529
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,7 @@ export function Result(props) {
setEditingValue(v); setEditingValue(v);
} }
setEditingValue(v); setEditingValue(v);
form.setValuesIn(fieldName, v); v !== value && props.onChange(v);
}); });
}); });
const Component = TypedComponents[dataType] ?? InputString; const Component = TypedComponents[dataType] ?? InputString;