Prevent the content from rerendering when it doesn't get any changes, allowing in-progress edits (closes #31)

This commit is contained in:
Oliver 2026-03-07 16:06:18 -07:00
parent ec5f2feb7e
commit 174aceeb91
2 changed files with 34 additions and 1 deletions

View file

@ -14,4 +14,13 @@ export class AttributeOnlyPlayerSheet extends PlayerSheet {
return parts;
};
// #endregion Options
// #region Lifecycle
_configureRenderOptions(options) {
super._configureRenderOptions(options);
// don't attempt to rerender the content
options.parts = options.parts?.filter(partID => partID !== `content`);
};
// #endregion Lifecycle
};