Can't open more than one character sheet at a time
I'm having some trouble figuring out what's causing this behaviour. Any clues?
2 Replies
Ah.. a module error was obscuring things. Once all modules deactivated I'm seeing this:
Which I suppose relates to this:
I'm a bit confused about how to handle that? What should I be doing here?
Are you using the same CSS ID on multiple sheets?
This looks generic: 'foundryvtt-final-fantasy--actor-sheet'
The check in SvelteApplication gives an explicit error in this case. CSS IDs need to be unique.
Potentially you can use the document ID:
foundryvtt-final-fantasy--actor-sheet-<DOC_ID>
. If you are using IDs for styling it's better to use an additional class instead.
Foundry core itself assigns a unique ID like app-1
, app-2
, app-N
if you don't explicitly set an ID.
I think various game systems take the appending of document ID approach.
This is how the dnd5e
system does actor sheet IDs:
ActorSheet5eCharacter2-Actor-1uc7SH7pMWqkxsE3
You can see that the document ID is appended.