MDL-78678 course: Highlight all types of modules when scrolling

This commit is contained in:
Amaia Anabitarte 2023-08-03 12:38:55 +02:00
parent 57ae65f514
commit 269f64b8bf
3 changed files with 2 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -350,10 +350,6 @@ export default class Component extends BaseComponent {
}
const element = index[item.id].element;
// Activities without url can only be page items in edit mode.
if (item.type === 'cm' && !item.url && !this.reactive.isEditing) {
return pageOffset >= element.offsetTop;
}
pageItem = item;
return pageOffset >= element.offsetTop;
});