1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

metadata: If any field focus on add field

This commit is contained in:
Vincent LAURENT 2023-04-20 15:44:59 +02:00
parent 4965d7878b
commit 4b0ca82652

View File

@ -61,6 +61,8 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
} }
if(document.querySelector('.input-metadata input')) { if(document.querySelector('.input-metadata input')) {
document.querySelector('.input-metadata input').focus(); document.querySelector('.input-metadata input').focus();
} else {
document.getElementById('input_metadata_key').focus();
} }
}); });
}, function (reason) { }, function (reason) {