Moodle - CoursePresentation content do not displayed if it not on first page
1. H5p CoursePresentation in Moodle:
1.1. Create CoursePresentation h5p activity, add slides. Note: all slides have lagre background images. Save and back to course.
1.2. Enter that activity. All is OK.
1.3. Move to any slide, other than first:
https://www.screencast.com/t/9u0JNg1LhXy
https://www.screencast.com/t/Zdif1AziPM
1.4. Return to course page
1.5. Enter that activity again. Empty page shown:
https://www.screencast.com/t/SHDV8c0Y
The following JS error appears:
https://www.screencast.com/t/ZvH31Z8D
1.6. It happens with all presentation on site I am managing.
To resolve - I must go into h5p editing mode, save (even without any changes) and visit that activity again. I see than:
https://www.screencast.com/t/h7FnxV7agEro
If I move outside first slide and leave presentation - same errors repeated every time.
If I scroll presentation, back to first slide, leave presentation and enter again - 1st slide will be shown
2. Moodle 3.8.2+ (Build: 20200320)
3. Desktop
4. Chrome / Opera
5. H5P CoursePresentation 1.21.1
5.1 I have additional issue with updationg of libraries, presented in thread https://h5p.org/node/868580
6. -
7. JS error
h5p-course-presentation.js?ver=1.21.1:1 Uncaught TypeError: Cannot read property 'find' of undefined
at S.setOverflowTabIndex (h5p-course-presentation.js?ver=1.21.1:1)
at S.attachElement (h5p-course-presentation.js?ver=1.21.1:1)
at i.t.appendElements (h5p-course-presentation.js?ver=1.21.1:1)
at S.createSlides (h5p-course-presentation.js?ver=1.21.1:1)
at S.attach (h5p-course-presentation.js?ver=1.21.1:1)
at Object.H5P.newRunnable (h5p.js?ver=2020020500:954)
at HTMLDivElement.<anonymous> (h5p.js?ver=2020020500:137)
at Function.each (jquery.js?ver=2020020500:2)
at init.each (jquery.js?ver=2020020500:2)
at Object.H5P.init (h5p.js?ver=2020020500:93)
8. No php erros