Skip to content

Commit

Permalink
feat(@uform/next): add disabled when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
monkindey committed May 7, 2019
1 parent 762532a commit 1b1d70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/antd/src/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Submit = ({ showLoading, ...props }) => {
<Button
type='primary'
htmlType='submit'
disabled={showLoading ? status === 'submitting' : undefined}
{...props}
loading={showLoading ? status === 'submitting' : undefined}
>
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Submit = ({ showLoading, ...props }) => {
<Button
type='primary'
htmlType='submit'
disabled={showLoading ? status === 'submitting' : undefined}
{...props}
loading={showLoading ? status === 'submitting' : undefined}
>
Expand Down

0 comments on commit 1b1d70d

Please sign in to comment.