From a5d28adc4457a0e6b18dda3a1796e8b35a59005f Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Tue, 24 Oct 2017 12:47:03 -0400 Subject: [PATCH] focus password field when clicking password checkbox --- app/templates/uploadPassword.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js index 0a70b4c8..84fa7797 100644 --- a/app/templates/uploadPassword.js +++ b/app/templates/uploadPassword.js @@ -27,6 +27,9 @@ module.exports = function(state, emit) { .getElementById('copy') .classList.toggle('wait-password', e.target.checked); document.getElementById('copy-btn').disabled = e.target.checked; + if (e.target.checked) { + document.getElementById('unlock-input').focus(); + } } function setPassword(event) {