Skip to content

Commit

Permalink
fix(form): 表单 submitter 增加自动换行属性 (ant-design#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibuniverse committed Jan 5, 2022
1 parent 4fd876a commit 9f755ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form/src/components/Submitter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const Submitter: React.FC<SubmitterProps & { form: FormInstance }> = (props) =>
if (renderDom?.length === 1) {
return renderDom[0] as JSX.Element;
}
return <Space>{renderDom}</Space>;
return <Space wrap>{renderDom}</Space>;
}
return renderDom as JSX.Element;
};
Expand Down

0 comments on commit 9f755ee

Please sign in to comment.