Skip to content

Commit 17d2d2b

Browse files
author
wu.xiaojun
committed
#1715 fixed the disable issue on field override control when "onBeforeSubmit" return true
1 parent 56afb24 commit 17d2d2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ export class DynamicForm extends React.Component<
286286
field.columnInternalName
287287
)
288288
) {
289-
field.disabled = field.disabled || isSaving;
290-
return fieldOverrides[field.columnInternalName](field);
289+
return fieldOverrides[field.columnInternalName]({ ...field,disabled: field.disabled || isSaving} )
291290
}
292291

293292
// Default render

0 commit comments

Comments
 (0)