T23d round 1 fix
- the conversation list reads the zone through format::system_zone, which fails loud; the gallery expects the system zone - Combobox opens with its cursor on its value, MultiSelect on the first row ticked; tests for all three lists open r25 of thirty in view - AGENTS: the zone rule; lists open on their choice
This commit is contained in:
1 parent
f3336b18bf
commit
4f9e9eb756
8 files changed
+87
-26
No files matched your search
@@ -158,6 +158,18 @@ impl RenderOnce for Combobox {
|
||||
};
|
||||
let rows = Rc::new(matching(&self.choices, query));
|
||||
let open = focused && !typing.read(cx).dismissed && !rows.is_empty();
|
||||
if open != picker.read(cx).open {
|
||||
let chosen = self.selected.as_ref().and_then(|value| {
|
||||
rows.iter()
|
||||
.position(|row| !row.disabled && row.value == *value)
|
||||
});
|
||||
picker.update(cx, |picker, _| {
|
||||
picker.open = open;
|
||||
if let Some(at) = chosen.filter(|_| open) {
|
||||
picker.highlighted = at;
|
||||
}
|
||||
});
|
||||
}
|
||||
let kept = picker.read(cx).highlighted;
|
||||
let highlighted = if rows.get(kept).is_some_and(|row| !row.disabled) {
|
||||
kept
|
||||
|
||||
Reference in new issue
Block a user