2022-05-08 12:33:27 +02:00
|
|
|
diff --git a/node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js b/node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
|
2022-05-13 14:45:49 +02:00
|
|
|
index 963422f..a4113bf 100644
|
2022-05-08 12:33:27 +02:00
|
|
|
--- a/node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
|
|
|
|
+++ b/node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
|
2022-05-13 14:45:49 +02:00
|
|
|
@@ -2609,7 +2609,7 @@ class Session {
|
|
|
|
const linkMethod = link.getAttribute("data-turbo-method");
|
|
|
|
if (linkMethod) {
|
|
|
|
const form = document.createElement("form");
|
|
|
|
- form.method = linkMethod;
|
|
|
|
+ form.setAttribute('method', linkMethod);
|
|
|
|
form.action = link.getAttribute("href") || "undefined";
|
|
|
|
form.hidden = true;
|
|
|
|
if (link.hasAttribute("data-turbo-confirm")) {
|
2022-05-08 12:33:27 +02:00
|
|
|
@@ -2621,9 +2621,9 @@ class Session {
|
|
|
|
form.addEventListener("turbo:submit-start", () => form.remove());
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
- form.addEventListener("submit", () => form.remove());
|
|
|
|
+ form.addEventListener("submit", () => setTimeout(() => form.remove(), 500));
|
|
|
|
}
|
|
|
|
- document.body.appendChild(form);
|
|
|
|
+ (document.querySelector('body > [data-turbo="true"]') || document.body).appendChild(form);
|
|
|
|
return dispatch("submit", { cancelable: true, target: form });
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
diff --git a/node_modules/@hotwired/turbo/dist/turbo.es2017-umd.js b/node_modules/@hotwired/turbo/dist/turbo.es2017-umd.js
|
2022-05-13 14:45:49 +02:00
|
|
|
index 101db1f..7d9cda6 100644
|
2022-05-08 12:33:27 +02:00
|
|
|
--- a/node_modules/@hotwired/turbo/dist/turbo.es2017-umd.js
|
|
|
|
+++ b/node_modules/@hotwired/turbo/dist/turbo.es2017-umd.js
|
2022-05-13 14:45:49 +02:00
|
|
|
@@ -2615,7 +2615,7 @@ Copyright © 2021 Basecamp, LLC
|
|
|
|
const linkMethod = link.getAttribute("data-turbo-method");
|
|
|
|
if (linkMethod) {
|
|
|
|
const form = document.createElement("form");
|
|
|
|
- form.method = linkMethod;
|
|
|
|
+ form.setAttribute('method', linkMethod);
|
|
|
|
form.action = link.getAttribute("href") || "undefined";
|
|
|
|
form.hidden = true;
|
|
|
|
if (link.hasAttribute("data-turbo-confirm")) {
|
2022-05-08 12:33:27 +02:00
|
|
|
@@ -2627,9 +2627,9 @@ Copyright © 2021 Basecamp, LLC
|
|
|
|
form.addEventListener("turbo:submit-start", () => form.remove());
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
- form.addEventListener("submit", () => form.remove());
|
|
|
|
+ form.addEventListener("submit", () => setTimeout(() => form.remove(), 500));
|
|
|
|
}
|
|
|
|
- document.body.appendChild(form);
|
|
|
|
+ (document.querySelector('body > [data-turbo="true"]') || document.body).appendChild(form);
|
|
|
|
return dispatch("submit", { cancelable: true, target: form });
|
|
|
|
}
|
|
|
|
else {
|