Skip to content

Commit

Permalink
Merge pull request #1501 from leshalv/master
Browse files Browse the repository at this point in the history
Button unique "key" prop
  • Loading branch information
lhbxs authored Mar 22, 2024
2 parents 0c1c20c + 3b123e6 commit 757e1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/form-render/src/form-core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ const FormCore:FC<FRProps> = (props) => {
const actionBtns = [];
if (!footer?.reset?.hide) {
actionBtns.push(
<Button {...footer?.reset} onClick={() => form.resetFields()}>
<Button key='reset' {...footer?.reset} onClick={() => form.resetFields()}>
{footer?.reset?.text || t('reset')}
</Button>
);
}
if (!footer?.submit?.hide) {
actionBtns.push(
<Button type='primary' onClick={form.submit} {...footer?.submit}>
<Button key='submit' type='primary' onClick={form.submit} {...footer?.submit}>
{footer?.submit?.text || t('submit')}
</Button>
);
Expand Down

0 comments on commit 757e1cf

Please sign in to comment.