mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-09 10:19:55 +00:00
Replace the per-submenu focus-out handler with a shared idle-deferred recheck: when any popup loses focus, ask after the next event-loop turn whether *any* of our popups still owns toplevel focus. If none does, the user clicked outside the menu tree, so close every popup at once instead of leaking the parent. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>