Fixed ContextMenu Errors from issue 104 #142
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
What type of pull request is this? (e.g., Bug fix, Feature, Refactor, etc.)
Description
Contextmenu error in console whenever a character sheet is reopened.
Related Issue
Closes #104
How Has This Been Tested?
Opening, closing, then reopening any character sheet any number of times. Since this symptom led from issues with Effects, Actions, and Equipment I also added several of each of these to character sheets and confirmed that they still render after my changes.
Screenshots (if applicable)
N/A
Checklist:
Additional context
Delayed Initialization: Since the context menu setup now waits for rendering, any code that relies on the context menu being ready sooner might need to be adjusted, though I could not find anything that suggested this would be an issue..
Re-rendering Events: This hook will trigger only once per rendering cycle. I think this is okay, but would rather defer to someone with more expertise here. Are there any dynamic elements that might depend on this?