Describe the bug
Clicking a section takes you to a neighbouring section in some circumstances
To Reproduce
On Moodle 4.1:
Create a course with the Collapsed Columns format and the following settings:
Number of sections : 38
Elements: No additions
Column orientation: Horizontal
press the "Save and display" button
Click on "Section 2" in the left-hand drawer
Expected behaviour
"Section 2" is at the top of the page and highlighted in the left hand navigation drawer.
Actual behaviour
"Section 1" is at the top of the page and "Section 1" is highlighted in the left hand navigation drawer. Similar behaviour can be observed by clicking "Section 3" and "Section 4" etc.
Versions (please complete the following information):
Describe the bug Clicking a section takes you to a neighbouring section in some circumstances
To Reproduce On Moodle 4.1:
Expected behaviour "Section 2" is at the top of the page and highlighted in the left hand navigation drawer.
Actual behaviour "Section 1" is at the top of the page and "Section 1" is highlighted in the left hand navigation drawer. Similar behaviour can be observed by clicking "Section 3" and "Section 4" etc.
Versions (please complete the following information):