-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.14, 4.4.4, 4.5
-
MOODLE_401_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
-
MDL-83523-main
-
-
-
Bug Description
The problem occurs when using the browser's back button to navigate between pages. After navigating to a different page (page B) using the combobox, pressing the back button and returning to the previous page (page A) prevents the user from re-selecting the same combobox option (page B). The combobox doesn't trigger a page reload because the value of the hidden inputElement is cached and remains the same, which blocks the re-selection of the same page.
This issue became apparent after working on MDL-82625, where the tertiary menu navigation did not properly reflect the current active page after using the back button in the browser. After fixing the checkmark issue in MDL-82625, this issue with the combobox navigation became more noticeable.
Steps to replicate
- Cherry-pick the code from MDL-82625.
- Navigate to a Moodle page that uses a combobox, such as the "Grader report" page.
- Select another page from the combobox, e.g., "Grade history"
- Verify the page redirects correctly to "Grade history".
- Press the browser's back button to return to the "Grader report" page.
- Attempt to re-select "Grade history" from the combobox.
Expected behaviour:
The user should be able to select the Grade history option again and be redirected back to that page.
Actual behaviour:
After pressing the back button, the combobox prevents the user from re-selecting "Grade history" because the inputElement.value and option.dataset.value are identical, which prevents the combobox from triggering a page reload
- is blocked by
-
MDL-82625 Checkmarks on tertiarynavigation display inconsistently after navigating via back button (bfcache)
-
- Reopened
-