-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Show password feature #1463
Show password feature #1463
Conversation
awesome @arjunanand23 ! |
endAdornment: <InputAdornment position="end"> | ||
<IconButton | ||
aria-label="toggle password visibility" | ||
onClick={() => { showPassword = !showPassword; }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is problematic, updating a variable instead of state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use State instead of a variable
@@ -49,6 +59,8 @@ export class Login extends Component { | |||
|
|||
const isButtonDisabled = isLogging || !!loginStatus.success; | |||
|
|||
var showPassword = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A state should be used for this. This is the reason why you need to type a new character to see the password.
completed on #1700 PR |
Attempted to add feature where password could be shown/hidden. Currently works if another character is entered but does not take place immediately.