Animate change and fix error when converting to unlinked

This commit is contained in:
Carlos Fernandez 2026-07-02 04:39:24 -04:00
parent 1e30d4973b
commit b8d6f20a2c
3 changed files with 23 additions and 54 deletions

View file

@ -39,6 +39,12 @@ export default class DhEffectsDisplay extends HandlebarsApplicationMixin(Applica
}
};
/**
* Debounce and slightly delayed request to re-render this panel. Necessary for situations where it is not possible
* to properly wait for promises to resolve before refreshing the UI.
*/
refresh = foundry.utils.debounce(this.render.bind(this), 50);
get element() {
return document.body.querySelector('.daggerheart.dh-style.effects-display');
}