Skip to content

Commit

Permalink
docs: Correct documentation error in CancelEditableAction component (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
varown committed May 23, 2023
1 parent b3df005 commit e2e4aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/useEditableArray/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ const CancelEditableAction: React.FC<ActionRenderConfig<any> & { row: any }> = (
const record = isMapEditor ? set({}, namePath, fields) : fields;
const res = await onCancel?.(recordKey, record, row, newLineConfig);
cancelEditable(recordKey);
/** 充值为默认值,不然编辑的行会丢掉 */
/** 重置为默认值,不然编辑的行会丢掉 */
form.setFieldsValue({
[recordKey as React.Key]: isMapEditor ? get(row, namePath) : row,
});
Expand Down

0 comments on commit e2e4aef

Please sign in to comment.