Compare commits
2 Commits
7fcf038f3d
...
6abff69bcb
Author | SHA1 | Date | |
---|---|---|---|
6abff69bcb | |||
a48df4e2da |
@ -7,6 +7,7 @@
|
||||
<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" />
|
||||
|
||||
|
@ -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 === 0 || !event.detail.success)) {
|
||||
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === "get" || !event.detail.success)) {
|
||||
// Don't close modal if form method was GET or submission failed
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user