Skip to content

Commit

Permalink
Submit button type bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarpere committed May 23, 2022
1 parent 8863080 commit afdd34c
Show file tree
Hide file tree
Showing 9 changed files with 173,010 additions and 173,737 deletions.
58,661 changes: 29,245 additions & 29,416 deletions packages/antd/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/antd/src/widgets/SubmitButton/SubmitButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { getSubmitButtonOptions } = utils;
export default ({ uiSchema }) => {
const { submitText, norender, props: submitButtonProps }= getSubmitButtonOptions(uiSchema);
if (norender) {return null;}
return (<Button type="submit" {...submitButtonProps}>
return (<Button htmlType={"submit"} {...submitButtonProps}>
{submitText}
</Button>);
};
Expand Down
8,869 changes: 4,432 additions & 4,437 deletions packages/bootstrap-4/package-lock.json

Large diffs are not rendered by default.

Loading

0 comments on commit afdd34c

Please sign in to comment.