Skip to content

Commit

Permalink
Merge pull request processing#2452 from rajatmohan22/loginPage
Browse files Browse the repository at this point in the history
Fix: cursor on Login button becomes `cursor: not-allowed` in pristine state
  • Loading branch information
lindapaiste authored Sep 21, 2023
2 parents d5eee45 + 3930562 commit ca74574
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions client/modules/User/components/LoginForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ function LoginForm() {
validate={validateLogin}
onSubmit={onSubmit}
>
{({
handleSubmit,
submitError,
pristine,
submitting,
modifiedSinceLastSubmit
}) => (
{({ handleSubmit, submitError, submitting, modifiedSinceLastSubmit }) => (
<form className="form" onSubmit={handleSubmit}>
<Field name="email">
{(field) => (
Expand Down Expand Up @@ -71,7 +65,7 @@ function LoginForm() {
{submitError && !modifiedSinceLastSubmit && (
<span className="form-error">{submitError}</span>
)}
<Button type="submit" disabled={submitting || pristine}>
<Button type="submit" disabled={submitting}>
{t('LoginForm.Submit')}
</Button>
</form>
Expand Down

0 comments on commit ca74574

Please sign in to comment.