fix(a11y): the model picker's highlighted row follows Tab, so only one row is outlined (#33367)

This commit is contained in:
G30 2026-10-29 01:57:04 -04:00 • committed by GitHub
parent b8391e550e
commit 6e569978d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -75,6 +75,9 @@
: ''}"
data-arrow-selected={index === selectedModelIdx}
data-value={item.value}
on:focus={() => {
selectedModelIdx = index;
}}
on:click={() => {
onClick();
}}

View file

@ -1106,7 +1106,7 @@
{#each filteredItems.slice(visibleStart, visibleEnd) as item, i (item.value)}
{@const index = visibleStart + i}
<ModelItem
{selectedModelIdx}
bind:selectedModelIdx
{item}
{index}
value={primaryValue}