-
Bug
-
Resolution: Fixed
-
Major
-
4.2.6, 4.3.3
To reproduce:
- Create a course with a few activities or course sections.
- Add some blocks to the course like the "Latest announcements" and/or the "Upcoming events" blocks.
- Turn editing mode on.
- Perform any course editing action that causes the course section or activity to be reloaded via AJAX.
- Move an activity to the left/right
- Hide/show course section
- Turn on a screen reader (NVDA or JAWS).
- Open the action menu and navigate through the action menu items of the edited course section or activity.
- Expected: The screen reader will announce the appropriate names of the action menu items.
- Actual: The action menu items become incorrectly labelled from items from other action menus because of element ID collision. (e.g. Instead of "Edit settings", it will announce something like "Configure latest announcements block").
This happens because the instance number that gets statically incremented is reset whenever the action menu gets reloaded via AJAX.