chore: stabilize element ids and overlay focus tracking
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-24 19:41:45 +07:00
parent 4979eff1f1
commit 0fd8ea12fb
24 changed files with 638 additions and 404 deletions
+4 -1
View File
@@ -33,7 +33,7 @@ use gpui::{
};
use crate::components::common::{
OVERLAY_LAYER, StyledExt as _, floating_panel, focus_handle, v_flex,
OVERLAY_LAYER, StyledExt as _, floating_panel, focus_handle, track_overlay_focus, v_flex,
wrapping_adjacent_selectable,
};
use crate::components::scroll_area::{ScrollArea, ScrollAxes};
@@ -557,6 +557,9 @@ impl RenderOnce for Menu {
let trigger_bounds: Rc<RefCell<Option<Bounds<Pixels>>>> = Rc::new(RefCell::new(None));
let on_change = self.on_change.clone();
let panel_focus = focus_handle(&(self.id.clone(), "panel").into(), window, cx);
track_overlay_focus(&self.id, &panel_focus, self.open, window, cx);
let fallback_label = self
.a11y_label
.clone()