Skip to content

Commit 5e45477

Browse files
committed
Fix form POST submission - event.preventDefault
1 parent ace9b55 commit 5e45477

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ function initContactModal(modal) {
109109
}
110110

111111
const handleFormSubmit = async (modal, form, feedback) => {
112-
event.preventDefault();
113-
112+
event.preventDefault(); // ✅ Keep this
113+
114114
// Honeypot check
115115
if (form.hp_email.value) {
116116
showFeedback(feedback, "⚠️ Submission blocked (spam detected).", "red");

0 commit comments

Comments
 (0)