Skip to content

Commit

Permalink
Fixed bug with login form. Form is now set to POST method even if JS …
Browse files Browse the repository at this point in the history
…fails to load properly.
  • Loading branch information
Martin Krulis committed Nov 7, 2017
1 parent eb3ff2f commit 1d325eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/widgets/FormBox/FormBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ const FormBox = ({
dirty = false,
children,
...props
}) => (
<Form onSubmit={onSubmit}>
}) =>
<Form method="POST" onSubmit={onSubmit}>
<Box
type={succeeded ? 'success' : dirty ? 'warning' : 'default'}
{...props}
unlimitedHeight
>
<div>{children}</div>
<div>
{children}
</div>
</Box>
</Form>
);
</Form>;

FormBox.propTypes = {
onSubmit: PropTypes.func,
Expand Down

0 comments on commit 1d325eb

Please sign in to comment.