Compare commits

..

No commits in common. "6abff69bcb0e429158b037ecb2977097d12dac71" and "7fcf038f3de8cfcac4594b88521e9c3d9de12bf5" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@
<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="view-transition" content="same-origin" />
<meta name="turbo-prefetch" content="false" />
<link rel="stylesheet" type="text/css" href="/css/main.css" asp-append-version="true" data-turbo-track="reload" />

View File

@ -13,7 +13,7 @@ export default class ModalController extends Controller {
if (!this.element.open) {
return;
}
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === "get" || !event.detail.success)) {
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === 0 || !event.detail.success)) {
// Don't close modal if form method was GET or submission failed
return;
}