Actor sheet -> working !!!, not WIP for rolls

This commit is contained in:
2026-06-06 16:25:00 +02:00
parent 891769816a
commit 2143bcc8db
3 changed files with 7 additions and 2 deletions
@@ -131,7 +131,12 @@ export class VermineBaseActorSheet extends HandlebarsApplicationMixin(foundry.ap
// ── Actions ─────────────────────────────────────────────────────────
_onRender(context, options) {
super._onRender(context, options)
// Activate initial tabs (force to bypass changeTab's early-return when the
// tab is already set as active in tabGroups — Foundry v12 doesn't call
// changeTab on initial render, so the active class is never applied)
for (const [group, tab] of Object.entries(this.tabGroups ?? {})) {
this.changeTab(tab, group, {force: true})
}
this.#dragDrop.forEach(d => d.bind(this.element))
this.element.querySelectorAll(".rollable").forEach(el => {
el.addEventListener("click", this._onRoll.bind(this))