After opening an Attribute-Only Sheet, other sheets fail to render their content #47

Closed
opened 2026-03-16 04:28:54 +00:00 by Oliver · 0 comments
Owner

Steps to Reproduce:

  1. Have two actors, one set to an Attribute-Only sheet, the other set to either of the other two sheets
  2. Open the non-attribute only actor's sheet, perceive the prose mirror editor
  3. Open the Attribute-Only actor's sheet
  4. Close the non-attribute only sheet
  5. Reopen the non-attribute only sheet
  6. Perceive the lack of the prose mirror editor

This is because when we do this:

static get PARTS() {
	const parts = super.PARTS;
	delete parts.tabs;
	delete parts.content;
	return parts;
};

we're editing the PARTS from the superclass as it is, to fix it we should just be deep-cloning the PARTS before mutating it

Steps to Reproduce: 1. Have two actors, one set to an Attribute-Only sheet, the other set to either of the other two sheets 2. Open the non-attribute only actor's sheet, perceive the prose mirror editor 3. Open the Attribute-Only actor's sheet 4. Close the non-attribute only sheet 5. Reopen the non-attribute only sheet 6. Perceive the lack of the prose mirror editor This is because when we do this: ```js static get PARTS() { const parts = super.PARTS; delete parts.tabs; delete parts.content; return parts; }; ``` we're editing the PARTS from the superclass as it is, to fix it we should just be deep-cloning the PARTS before mutating it
Oliver added this to the v2.6.1 milestone 2026-03-16 04:28:54 +00:00
Oliver added the
Reviewed
Confirmed
Priority
High
Kind
Bug
labels 2026-03-16 04:28:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Foundry/taf#47
No description provided.