160e1e1882
"click" events are handled by several elements in user settings, and some of them (like the edit icon in the user name) stop the propagation of the event. Due to this the event never reaches the document and thus the menu was not closed in those cases. "click" events are always preceded by "mouseup" events (as "click" events are generated when "mousedown" and "mouseup" events occur in the same element), so now the menu is closed when a "mouseup" is received in the document. The described problem would happen too if an element stopped the propagation of the "mouseup" event; currently no element does that in the user settings, so now the menu is always closed as expected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> |
||
---|---|---|
.. | ||
settings | ||
users | ||
admin.js | ||
apps.js | ||
authtoken.js | ||
authtoken_collection.js | ||
authtoken_view.js | ||
certificates.js | ||
federationscopemenu.js | ||
federationsettingsview.js | ||
log.js | ||
settings.js | ||
usersettings.js |