h5p / h5p-blanks

9 stars 68 forks source link

Fix getMaxScore #69

Closed otacke closed 3 years ago

otacke commented 3 years ago

Some compound contents like IV instantiate the content but don't attach it to the DOM right away. Since the clozes were not created before content is being attached, calling getMaxScore before the content was attached yielded 0 instead of the correct number.

Reported at https://h5p.org/node/1060015 and fixed here.