Skip to content

Commit

Permalink
Fixed #1978 - The panel always stays open with browser's autofill fea…
Browse files Browse the repository at this point in the history
…ture on Password
  • Loading branch information
mertsincan committed Apr 23, 2021
1 parent fe1d48c commit 1d791bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export class Password extends Component {
}

onKeyup(e) {
if(this.props.feedback) {
let keyCode = e.keyCode || e.which;

if (this.props.feedback) {
let value = e.target.value;
let label = null;
let meter = null;
Expand Down Expand Up @@ -283,7 +285,7 @@ export class Password extends Component {
meter,
infoText: label
}, () => {
if (!this.state.overlayVisible) {
if (!!keyCode && !this.state.overlayVisible) {
this.showOverlay();
}
});
Expand Down

0 comments on commit 1d791bd

Please sign in to comment.