This fixes the following case:
1. open the dropdown menu of a "Filename"
2. click elsewhere on the page to close the dropdown menu
(or click on a submenu element)
3. try to open the same dropdown menu => it fails the first time (since it does not have the "dropdown-menu" class)