Bug 1033372 - fix repo-menu disappear on click-away and esc.