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

Pressing enter key on input toggles the password visibility #21

Closed
ericnilo opened this issue Aug 15, 2018 · 1 comment
Closed

Pressing enter key on input toggles the password visibility #21

ericnilo opened this issue Aug 15, 2018 · 1 comment

Comments

@ericnilo
Copy link

Pre-requisite

toggle prop must be set to true

Expected Behavior

User is typing a password and presses enter key, the input should not toggle the password visibility

Actual Behavior

User is typing a password and presses enter key, the input is toggling the password visibility

This is an issue since whenever we want to submit the form, instead of submitting it, it just toggle the type.

Environment

  • NPM version: 6.0.1
  • vue.js version: 2.5.16
  • vue-password-strength-meter version: 1.3.0
@apertureless
Copy link
Owner

apertureless commented Aug 29, 2018

Hey @ericnilo

I can not reproduce this behaviour.
Can you maybe provide a reproduction example?

For me if I enter a password and then press enter, nothing happens.
If I press tab the focus goes to the show/hide password button, then you can press enter to show and hide it.

However I could not reproduce it while the input got the focus.

Edit: Okay now I could reproduce it.

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

No branches or pull requests

2 participants