You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder what the intended behavior of resetTask here is exactly. It is handled differently across content types. For instance, Multiple Choice and Single Choice Set keep the item order, but Drag the Words shuffles the draggables on every call to resetTask. Check with the Course Presentation demo, for instance
From the perspective of a compound content types, it could make sense to randomize a subcontent on reset (if that makes sense for the content type and if the content type is configured accordingly) in order to present the user with a fresh start instead of having the same order of items again and again. There could, however, also be cases where the exact same order is expected.
I'd just like to know what the expected behavior, so I can
create pull requests to content types that do not behave as expected and to
potentially change my own compound content types to throw away subcontent instances and create and attach new ones when resetting (even though that does not feel elegant).
@fnoks Do you happen to have any insight to share here?
The text was updated successfully, but these errors were encountered:
h5p-multi-choice/js/multichoice.js
Line 574 in 5f38a90
The
resetTask
function is what is resetting a task to its initial state (https://h5p.org/documentation/developers/contracts#guides-header-5). This implementation does this just fine.In contrast, when the user hits the 'Retry' button, the task will be reset plus the answer options will be shuffled (
h5p-multi-choice/js/multichoice.js
Lines 697 to 712 in 5f38a90
I wonder what the intended behavior of
resetTask
here is exactly. It is handled differently across content types. For instance, Multiple Choice and Single Choice Set keep the item order, but Drag the Words shuffles the draggables on every call toresetTask
. Check with the Course Presentation demo, for instanceFrom the perspective of a compound content types, it could make sense to randomize a subcontent on reset (if that makes sense for the content type and if the content type is configured accordingly) in order to present the user with a fresh start instead of having the same order of items again and again. There could, however, also be cases where the exact same order is expected.
I'd just like to know what the expected behavior, so I can
@fnoks Do you happen to have any insight to share here?
The text was updated successfully, but these errors were encountered: