learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
779 stars 647 forks source link

Folders that include one folder cannot be selected #12327

Closed marcellamaki closed 2 months ago

marcellamaki commented 3 months ago

Due to some of the validation changes, we have a bug around the folder selection. For example, the non-selectable items in the video below (checkbox is present, but they are not added to the list of active questions/count) are folders that when you click in, there is one subfolder but no additional items

Slack Message

marcellamaki commented 3 months ago

Per conversation with Richard, this issue should also fix

the ||ing two functions in the contentHasCheckbox prop in ContentCardList is unlikely to give the correct result.

maybe :contentHasCheckbox="c => folderDoesNotHaveTooManyQuestions(c) || hasCheckbox(c)"