Skip to content

Commit

Permalink
fix 'smart' SubmitButton behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikbuschke committed Feb 29, 2020
1 parent 1939a30 commit 78a950b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formik-antd",
"version": "1.9.0-beta.3",
"version": "1.9.0-beta.4",
"author": "Jannik Buschke",
"description": "Dead simple declarative bindings for Formik and Ant Design.",
"displayName": "formik-antd",
Expand Down
2 changes: 1 addition & 1 deletion src/submit-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const SubmitButton = ({ children, ...restProps }: ButtonProps) => (
loading={isSubmitting}
type='primary'
htmlType='submit'
disabled={!(isValid || dirty)}
disabled={!isValid && dirty}
{...restProps}
>
{children}
Expand Down

0 comments on commit 78a950b

Please sign in to comment.