Skip to content

Commit

Permalink
pnp#1715 fixed the disable issue on field override control when "onBe…
Browse files Browse the repository at this point in the history
…foreSubmit" return true
  • Loading branch information
wu.xiaojun committed Dec 4, 2023
1 parent 56afb24 commit 17d2d2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controls/dynamicForm/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ export class DynamicForm extends React.Component<
field.columnInternalName
)
) {
field.disabled = field.disabled || isSaving;
return fieldOverrides[field.columnInternalName](field);
return fieldOverrides[field.columnInternalName]({ ...field,disabled: field.disabled || isSaving} )
}

// Default render
Expand Down

0 comments on commit 17d2d2b

Please sign in to comment.