Preserve description expand state on re-render

This commit is contained in:
Carlos Fernandez 2026-07-13 22:02:22 -04:00
parent 3a5529f1dc
commit 3868900678
4 changed files with 28 additions and 28 deletions

View file

@ -270,9 +270,6 @@ export function ActionMixin(Base) {
}
async toChat(origin, config) {
const autoExpandDescription = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
.expandRollMessage?.desc;
const cls = getDocumentClass('ChatMessage');
const systemData = {
title: game.i18n.localize('DAGGERHEART.CONFIG.FeatureForm.action'),
@ -307,7 +304,7 @@ export function ActionMixin(Base) {
system: systemData,
content: await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/ui/chat/action.hbs',
{ ...systemData, open: autoExpandDescription ? 'open' : '' }
systemData
),
flags: {
daggerheart: {