Drop-down icon of last item in main menu inconsistent in expanding sub menu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Doris Tam |
Bug Description
- SUMMARY -
Clicking the arrow icon beside the last item of the main menu to expand the submenu causes the main menu to collapse after opening.
Reproduce:
- Go to the people search page, files page, pages and collections page
- Refresh the page
- Open the main menu
- Click on the arrow associated with the last menu item to expand it
Expect:
- Expanded menu items from the main menu's submenu has displayed
- User can see the items of the expanded submenu
Actual:
- Main menu is collapsed upon clicking the arrow to expand the menu item
- If we open up the main menu again, we can see that the submenu did expand out
Note:
- Clicking the actual text of the item does not cause this issue
- Version is of the latest master at the time of writing 2020.11.12, assuming 20.10
- Same outcome on both Firefox and Chrome
- This doesn't happen to all Mahara pages only some, not sure what the similarities are of the pages affected 🤔
description: | updated |
description: | updated |
tags: | added: menus |
description: | updated |
description: | updated |
description: | updated |
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
milestone: | none → 21.04.0 |
importance: | Undecided → Medium |
status: | In Progress → Fix Committed |
summary: |
- Dropdown icon of last item in main menu inconsistent in expanding - submenu + Drop-down icon of last item in main menu inconsistent in expanding sub + menu |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
It looks like the problem is in htdocs/js/mahara.js on line 1193 and / or line 1202 where we hide things on blur
We need to adjust it so that if we only do the hiding of we are tabbing away from the last element rather than any action