Skip to content

Commit 73006fb

Browse files
committed
fix submit
1 parent 4609a8f commit 73006fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dist/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,9 @@
11531153
form.style.display = 'block';
11541154
form.style.margin = '0';
11551155
form.style.padding = '0';
1156+
const submit = $c('button', { type: 'submit', hidden: true });
1157+
submit.style.display = 'none';
1158+
form.appendChild(submit);
11561159
const h1 = $c('h1');
11571160
h1.innerText = 'Password';
11581161
form.appendChild(h1);
@@ -1288,7 +1291,8 @@
12881291
a.innerText = href;
12891292
sc.appendChild(a);
12901293
};
1291-
form.addEventListener('submit', () => {
1294+
form.addEventListener('submit', (e) => {
1295+
e.preventDefault();
12921296
performShare();
12931297
return false;
12941298
});

0 commit comments

Comments
 (0)