mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-26 17:08:07 +00:00
passphrase modal input fix
This commit is contained in:
parent
38c45bb78d
commit
d1b02ed288
@ -123,13 +123,12 @@ export default class PinModal extends Component<Props, State> {
|
|||||||
|
|
||||||
if (this.passphraseInput) {
|
if (this.passphraseInput) {
|
||||||
this.passphraseInput.value = passphraseInputValue;
|
this.passphraseInput.value = passphraseInputValue;
|
||||||
this.passphraseInput.setAttribute("type", visible ? "text" : "password");
|
this.passphraseInput.setAttribute("type", visible || (!visible && !passphraseFocused) ? "text" : "password");
|
||||||
}
|
}
|
||||||
if (this.passphraseRevisionInput) {
|
if (this.passphraseRevisionInput) {
|
||||||
this.passphraseRevisionInput.value = passphraseRevisionInputValue;
|
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 => {
|
onPassphraseChange = (input: string, value: string): void => {
|
||||||
|
Loading…
Reference in New Issue
Block a user