Merge branch 'main' into delete-account-improvements
This commit is contained in:
@@ -54,6 +54,12 @@ export default class extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
frameColumnOnMobile(event) {
|
||||
if (!this.#isDesktop) {
|
||||
event.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center" })
|
||||
}
|
||||
}
|
||||
|
||||
async #restoreColumnsDisablingTransitions() {
|
||||
this.#disableTransitions()
|
||||
this.#restoreColumns()
|
||||
|
||||
@@ -7,7 +7,8 @@ export default class extends Controller {
|
||||
static values = {
|
||||
modal: { type: Boolean, default: false },
|
||||
sizing: { type: Boolean, default: true },
|
||||
autoOpen: { type: Boolean, default: false }
|
||||
autoOpen: { type: Boolean, default: false },
|
||||
orient: { type: Boolean, default: true }
|
||||
}
|
||||
|
||||
connect() {
|
||||
@@ -26,7 +27,9 @@ export default class extends Controller {
|
||||
this.dialogTarget.showModal()
|
||||
} else {
|
||||
this.dialogTarget.show()
|
||||
orient({ target: this.dialogTarget, anchor: this.element })
|
||||
if (this.orientValue) {
|
||||
orient({ target: this.dialogTarget, anchor: this.element })
|
||||
}
|
||||
}
|
||||
|
||||
this.loadLazyFrames()
|
||||
|
||||
Reference in New Issue
Block a user