turbo:load doesn't seem to be working, try a specific controller method to open it

This commit is contained in:
Jason Zimdars
2025-12-20 18:05:41 -06:00
parent d4ace2752c
commit d0587d5db8
2 changed files with 4 additions and 2 deletions
@@ -5,11 +5,13 @@ export default class extends Controller {
static targets = [ "dialog" ]
static values = {
modal: { type: Boolean, default: false },
sizing: { type: Boolean, default: true }
sizing: { type: Boolean, default: true },
autoOpen: { type: Boolean, default: false }
}
connect() {
this.dialogTarget.setAttribute("aria-hidden", "true")
if (this.autoOpenValue) this.open()
}
open() {