Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep combobox option buttons out of the tab order (#8107)

[._.]/ Adam Eivy072b02e7c675
diff --git a/client/src/components/EntityCombobox.jsx b/client/src/components/EntityCombobox.jsx
index 7637a53947..3efc069c91 100644
--- a/client/src/components/EntityCombobox.jsx
+++ b/client/src/components/EntityCombobox.jsx
@@ -190,6 +190,11 @@ export default function EntityCombobox({
id={optionId(u.id)}
role="option"
aria-selected={u.id === selectedId}
+ // Virtually focused via the input's `aria-activedescendant`
+ // (WAI-ARIA combobox pattern) — tabIndex={-1} keeps a native
+ // <button>'s default tab stop from pulling focus off the
+ // input, matching every other option row in this codebase.
+ tabIndex={-1}
onClick={() => { onPick(u); setOpen(false); }}
onMouseEnter={() => setActiveIdx(i)}
className={`w-full text-left px-3 py-2 text-sm flex items-center gap-2 ${
@@ -212,6 +217,7 @@ export default function EntityCombobox({
id={createOptionId}
role="option"
aria-selected={false}
+ tabIndex={-1}
disabled={busy}
onClick={() => { onCreate(); setOpen(false); }}
onMouseEnter={() => setActiveIdx(filtered.length)}
diff --git a/client/src/components/sprites/SpriteSearch.jsx b/client/src/components/sprites/SpriteSearch.jsx
index ffa1e23962..ae1fd4dc75 100644
--- a/client/src/components/sprites/SpriteSearch.jsx
+++ b/client/src/components/sprites/SpriteSearch.jsx
@@ -94,6 +94,11 @@ export default function SpriteSearch({ records, onSelect }) {
id={`sprite-opt-${r.id}`}
role="option"
aria-selected={i === activeIndex}
+ // Virtually focused via the input's `aria-activedescendant`
+ // (WAI-ARIA combobox pattern), like the other option rows in
+ // this list — tabIndex={-1} keeps a native <button>'s
+ // default tab stop from pulling focus off the input.
+ tabIndex={-1}
onClick={() => commit(r)}
onMouseEnter={() => setActiveIndex(i)}
className={`w-full flex items-center gap-2 text-left px-3 py-2 text-sm ${i === activeIndex ? 'bg-port-accent/20 text-white' : 'text-gray-300 hover:bg-port-bg'}`}