clear password on checkPassword
This commit is contained in:
parent
fd2b58d96d
commit
060b6835f1
|
@ -66,7 +66,10 @@ function password(state, emit) {
|
||||||
function checkPassword(event) {
|
function checkPassword(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const password = document.getElementById('password-input').value;
|
const el = document.getElementById('password-input');
|
||||||
|
const password = el.value;
|
||||||
|
// clear the value to prevent the save password dialog
|
||||||
|
el.value = '';
|
||||||
if (password.length > 0) {
|
if (password.length > 0) {
|
||||||
document.getElementById('password-btn').disabled = true;
|
document.getElementById('password-btn').disabled = true;
|
||||||
state.fileInfo.url = window.location.href;
|
state.fileInfo.url = window.location.href;
|
||||||
|
|
Loading…
Reference in New Issue