-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.8.7, 3.9.4
-
MOODLE_38_STABLE, MOODLE_39_STABLE
When adding restrict access to any course module, an "Uncaught TypeError" is thrown. Ultimately the interface still works but this negatively affects users using screen readers. The error appears to be associated with a form focus function.
Steps to reproduce:
- Turn on browser developer tools and have the console displayed.
- Login to a course as an instructor
- Add an activity or resource to the course
- Complete all require fields for the activity
- Under "Restrict Access" click "Add restriction..."
- Choose any restriction
- When the modal goes away, the page runs into a
"first.js:69 Uncaught TypeError: Cannot read property 'querySelectorAll' of undefined"