acdh-oeaw / vicav-vue3

Reimplementation of the VICAV Frontend based on Vue.js 3
https://vicav-vue.acdh-ch-dev.oeaw.ac.at
MIT License
0 stars 0 forks source link

menu collapse on narrow screen does not close when clicked outside #22

Closed ttechnicus closed 11 months ago

ttechnicus commented 1 year ago

May not have a solution.

On a narrow screen the menu is transformed into a collapse which is operated via a hamburger button. Unfotunately, a collapse does not have focus (:focus is null and document.activeElement is the element), so it cannot be traced directly if the user clicks outside the menu, in order to collapse it.

The same bug exists on the old vicav frontend.

ttechnicus commented 11 months ago

Resolved by #55