Update dependencies
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
"destination": "wwwroot/lib/inter/"
|
||||
},
|
||||
{
|
||||
"library": "@hotwired/turbo@8.0.4",
|
||||
"library": "@hotwired/turbo@8.0.10",
|
||||
"destination": "wwwroot/lib/hotwired/turbo/"
|
||||
},
|
||||
{
|
||||
|
@ -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 === "GET" || !event.detail.success)) {
|
||||
// Don't close modal if form method was GET or submission failed
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user