From fdafc1c59ecba1ce5fc500ddfb41e316290c44a5 Mon Sep 17 00:00:00 2001 From: ehuggett Date: Wed, 1 Nov 2017 23:36:45 +0000 Subject: [PATCH] minor fix for togglePasswordInput --- app/templates/uploadPassword.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js index 8c719116..74c901d0 100644 --- a/app/templates/uploadPassword.js +++ b/app/templates/uploadPassword.js @@ -24,7 +24,9 @@ module.exports = function(state, emit) { function togglePasswordInput(e) { const unlockInput = document.getElementById('unlock-input'); const boxChecked = e.target.checked; - document.querySelector('.setPassword').classList.toggle('hidden'); + document + .querySelector('.setPassword') + .classList.toggle('hidden', !boxChecked); document .getElementById('copy') .classList.toggle('wait-password', boxChecked);