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

HFP-3645 Fix calls to showSolutions or resetTask #157

Closed
wants to merge 1 commit into from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Jan 31, 2023

Currently, when Multiple Choice questions are subcontent and the parent content does not attach Multiple Choice content when instantiating, but dynamically as needed like Interactive Book, calls to the Question Type contract functions showSolutions and resetTask will crash Multiple Choice. That's because Multiple Choice assumes that it's DOM elements have already been attached to the page, but doesn't check.

When merged in, a guard will be added to the showSolutions function and the resetTask function to prevent crashes.

@otacke otacke changed the title Fix calls to showSolutions or resetTask HFP-3645 Fix calls to showSolutions or resetTask Jan 31, 2023
@otacke
Copy link
Contributor Author

otacke commented Sep 25, 2023

Fixed by #164

@otacke otacke closed this Sep 25, 2023
@otacke otacke deleted the fix-contract branch September 25, 2023 07:40
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