This commit is contained in:
2025-08-04 15:20:25 +02:00
parent a3f88a6def
commit 47686a25cc
6 changed files with 6 additions and 14 deletions

View File

@@ -70,7 +70,6 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
this.sheetContext = context;
context.system.tab = this.tab;
console.log(context.system.tab);
return context;
}
@@ -84,19 +83,13 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
/** @override */
_onRender(context, options) {
// this.tab = context.system.tab;
const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: this.tab});
tabs.bind(this.element);
console.log("Rendering with "+this.tab+" open");
tabs.activate(this.tab);
// tabs.activate(this.tab);
tabs.callback = () => {
console.log("Switching to "+tabs.active);
this.tab = tabs.active;
context.system.tab = tabs.active;
this.submit();
}
}