Исправить перекрытие навигации и обновить пакеты образов
This commit is contained in:
1 parent
f48754aaf5
commit
249b777bec
6 files changed
+172
-5
No files matched your search
@@ -727,4 +727,14 @@
|
||||
window.addEventListener('storage', function(event) { if (event.key === 'crank_onboarding_signal') refresh(); });
|
||||
document.addEventListener('visibilitychange', function() { if (!document.hidden) refresh(); });
|
||||
document.addEventListener('keydown', function(event) { if (event.key === 'Escape' && state.open) setOpen(false); });
|
||||
// Shell menus own the pointer plane. Capture before their handlers stop
|
||||
// propagation so the optional helper cannot cover an opened menu.
|
||||
document.addEventListener('click', function(event) {
|
||||
if (state.open && event.target instanceof Element
|
||||
&& event.target.closest('.nav-avatar, .nav-hamburger')) {
|
||||
// Keep keyboard focus on the shell control that the user just activated.
|
||||
lastFocused = null;
|
||||
setOpen(false);
|
||||
}
|
||||
}, true);
|
||||
}());
|
||||
Reference in new issue
Block a user