focus password field when clicking password checkbox
This commit is contained in:
parent
046f227003
commit
a5d28adc44
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ module.exports = function(state, emit) {
|
||||||
.getElementById('copy')
|
.getElementById('copy')
|
||||||
.classList.toggle('wait-password', e.target.checked);
|
.classList.toggle('wait-password', e.target.checked);
|
||||||
document.getElementById('copy-btn').disabled = e.target.checked;
|
document.getElementById('copy-btn').disabled = e.target.checked;
|
||||||
|
if (e.target.checked) {
|
||||||
|
document.getElementById('unlock-input').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPassword(event) {
|
function setPassword(event) {
|
||||||
|
|
Loading…
Reference in a new issue