Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masking a 'password' type input makes the field appear prepopulated #56

Open
1 of 6 tasks
SladeRun14 opened this issue Jul 29, 2018 · 1 comment
Open
1 of 6 tasks

Comments

@SladeRun14
Copy link

Applying a mask to a password type input field confuses the user

Use case:

We're trying to apply a mask to field that accepts a PIN number. The PIN number should be hidden from onlookers as the user types, so we use a password type input field. We want to limit the user to entering exactly 6 digit and only digits. The mask is perfect for this (paired with a validation).

  • Bug
  • Feature request
  • Code refactor
  • Continuous Integration (CI) improvement
  • Changes in documentation (docs)
  • Other (describe)

What is the current behavior?

Applying a mask to a password type input field initially displays the field populated dots. These dots erroneously indicate to the user that something has been entered in the field.

What is the expected behavior?

A password type input field should initially display the underscores representing each digit in the mask.

@renato-bohler
Copy link
Owner

It is beyond us to change how the input type password displays the inputted characters on the navigator.

The desired use case will be feasible though, when #55 is done (and using input type text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants