Fixed charactercreation tabs sticking after closing

This commit is contained in:
WBHarry 2025-07-23 16:11:24 +02:00
parent 67eff5d512
commit 9cbd03d3ae

View file

@ -270,6 +270,11 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
}); });
} }
async _preFirstRender(_context, _options) {
this.tabGroups.primary = 'setup';
this.tabGroups.setup = 'ancestry';
}
async _prepareContext(_options) { async _prepareContext(_options) {
const context = await super._prepareContext(_options); const context = await super._prepareContext(_options);
context.tabs = this._getTabs(this.constructor.TABS); context.tabs = this._getTabs(this.constructor.TABS);