Skip to content

Commit 97a708a

Browse files
committed
fix: caricamento indirizzo email in invio mail
1 parent 2f54b28 commit 97a708a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mail.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@
220220
let num = 0;
221221
$(".destinatari").each(function(){
222222
addAutoComplete(this);
223-
if (num++==0) {
223+
if (num++ == 0 && emails.length > 0) {
224+
$(this).val(emails[0].value).trigger("change");
224225
$(this).prop("required", true);
225226
}
226227
});

0 commit comments

Comments
 (0)