Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v11 RollTables fix #162

Open
wants to merge 10 commits into
base: v10-development
Choose a base branch
from

Conversation

GSBicalho
Copy link

@GSBicalho GSBicalho commented Jul 6, 2023

The current GmScreen almost works as-is on v11. The only issue I found was with RollTables, which don't render properly. This is caused by three things:

  • getData is now async, so it always returns a promise
  • TextEditor.enrichHTML is now async by default, but you can pass it a flag to make it sync
  • CONST.TABLE_RESULT_TYPES no longer has the ENTITY type, but instead a DOCUMENT type

This PR fixes these issues and allows RollTables to be rendered correctly on the GmScreen. Also, the activateListeners of the RollTable must be overriden, as it tries to set attributes of elements that do not exist. It does not stop rendering, but floods the console with error logs.

Let me know if you're fine with having a direct bump to v11 that doesn't work in v10, or if you'd rather have a check that changes the behavior depending on the detected version

@GSBicalho GSBicalho marked this pull request as ready for review July 6, 2023 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant