checkCompletionStatusFor
doesn't complete if model and its children are optional and trickled
#526
Labels
bug
Something isn't working
If a model and its children are
"_isOptional": true
and set to use a trickle button, the model does not mark as_isComplete
because the trickle button is not visually available to be completed.Whilst the JSON is unlikely to be configured this way whilst authoring, it is possible when using a role selector or diagnostic type plugin which can dynamically update
_isOptional
depending on user choices.This can be resolved by excluding non-trackable components such as the trickle button from:
adapt-contrib-core/js/models/adaptModel.js
Line 316 in de6fcd9
It might be useful to create an API method returning these models so it can be used elsewhere as required:
The text was updated successfully, but these errors were encountered: