Setup focus handling on touch target's connect callback
... to support lazy loaded dialog content
This commit is contained in:
@@ -11,11 +11,14 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
connect() {
|
||||
this.#setupFocus()
|
||||
this.dialogTarget.setAttribute("aria-hidden", "true")
|
||||
if (this.autoOpenValue) this.open()
|
||||
}
|
||||
|
||||
focusTouchTargetConnected() {
|
||||
this.#setupFocus()
|
||||
}
|
||||
|
||||
open() {
|
||||
const modal = this.modalValue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user