Bug 40726

Summary: Clicking off of a dropdown in the user menu branch switching closes the dropdown
Product: Koha Reporter: Benjamin Daeuber <bdaeuber>
Component: AccessibilityAssignee: Laura Escamilla <Laura.escamilla>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: Laura.escamilla, martin.renvoize, matt.blenkinsop, oleonard
Version: 25.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40726: Prevent closing the user menu when clicking off of the dropdown

Description Benjamin Daeuber 2025-08-28 19:01:40 UTC
When using the user menu switching, if you miss the dropdown and click anywhere behind it, it closes the menu. I'd expect the menu to stay open unless I click elsewhere on the page, outside of the menu.

To recreate

1. Open the user menu
2. Click the gear
3. Try to click a dropdown but miss it and click outside of it
4. View the menu collapsing.
Comment 1 Laura Escamilla 2025-08-29 14:19:40 UTC
Created attachment 185930 [details] [review]
Bug 40726: Prevent closing the user menu when clicking off of the dropdown

To test:

1. In the staff interface click on the user menu (top right corner where it has the user and library branch).
2. Click the gear icon.
3. Try to click a dropdown but miss it and click outside of it (still in the grey box area).
4. View the menu collapsing.
5. Apply the patch & restart all. Refresh your page.
6. Retry steps 1-3. Notice now that when you click within the grey box area around the drop down the user menu no longer closes. However, if you click outside of the dropdown menu (anywhere else on the interface screen) the user menu closes.
7. Sign off — have an amazing day! :D