mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 09:51:35 +00:00
fix(a11y): the model picker's highlighted row follows Tab, so only one row is outlined (#33367)
This commit is contained in:
parent
b8391e550e
commit
6e569978d9
2 changed files with 4 additions and 1 deletions
|
|
@ -75,6 +75,9 @@
|
|||
: ''}"
|
||||
data-arrow-selected={index === selectedModelIdx}
|
||||
data-value={item.value}
|
||||
on:focus={() => {
|
||||
selectedModelIdx = index;
|
||||
}}
|
||||
on:click={() => {
|
||||
onClick();
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue