1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-26 00:48:35 +00:00

passphrase modal input fix

This commit is contained in:
Szymon Lesisz 2018-05-21 12:17:15 +02:00
parent 38c45bb78d
commit d1b02ed288

View File

@ -123,13 +123,12 @@ export default class PinModal extends Component<Props, State> {
if (this.passphraseInput) {
this.passphraseInput.value = passphraseInputValue;
this.passphraseInput.setAttribute("type", visible ? "text" : "password");
this.passphraseInput.setAttribute("type", visible || (!visible && !passphraseFocused) ? "text" : "password");
}
if (this.passphraseRevisionInput) {
this.passphraseRevisionInput.value = passphraseRevisionInputValue;
this.passphraseRevisionInput.setAttribute("type", visible ? "text" : "password");
this.passphraseRevisionInput.setAttribute("type", visible || (!visible && !passphraseRevisionFocused) ? "text" : "password");
}
}
onPassphraseChange = (input: string, value: string): void => {