Skip to content

Input error state does not get reset when changing page #843

@surjikal

Description

@surjikal

On Google Chrome, with Lock version 10.10.2, the input error state does not get reset on transition to a different page, and it seems to mess with the transitions. It is a big issue for me because this might be the first thing a user sees, and it looks quite unprofessional.

To reproduce:

  1. Go to https://auth0.com/lock
  2. Scroll to the web form example
  3. Hit the "Login" button, errors should show up next to the inputs
  4. Hit the "Reset password" link.

You should see that the input is shown during the transition to the password reset page, and the error state of the previous page is applied to the password reset input.

Transition from login to password reset

Now hit the back button, and you'll see that the password reset input is visible during the transition (it's over the bottom button), and the error state is only applied to the first input of the login page.

Transition from password reset to login

I think a good fix could be to just clear the input error state when you change the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions