diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index be73c48..2cb5484 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -53,9 +53,8 @@
Contact
diff --git a/src/components/Modal/ModalForm.astro b/src/components/Modal/ModalForm.astro
index 0a67fc0..e17d3e9 100644
--- a/src/components/Modal/ModalForm.astro
+++ b/src/components/Modal/ModalForm.astro
@@ -135,6 +135,7 @@
const formContainer = document.getElementById("formContainer");
const successMessage = document.getElementById("successMessage");
const failureMessage = document.getElementById("failureMessage");
+ const openModalFooter = document.getElementById("openModalFooter");
if (
closeModalButton &&
modal &&
@@ -143,11 +144,13 @@
spinner &&
formContainer &&
successMessage &&
- failureMessage
+ failureMessage &&
+ openModalFooter
) {
closeModalButton.addEventListener("click", function () {
modal.style.display = "none";
});
+
modal.addEventListener("click", function (event) {
if (!formContainer.contains(event.target)) {
modal.style.display = "none";
@@ -157,6 +160,9 @@
openModal.addEventListener("click", function () {
modal.style.display = "block";
});
+ openModalFooter.addEventListener("click", function () {
+ modal.style.display = "block";
+ });
form.addEventListener("submit", async function (event) {
event.preventDefault();
const formData = new FormData(event.target);