Skip to content

Commit 202fb59

Browse files
committed
fix: prevent auto-focus on pin buttons in ApiConfigSelector
- Add tabIndex={-1} to pin buttons to prevent them from receiving focus automatically - This fixes the issue where focus would jump to the first pin button when opening the dropdown with 6 or fewer items
1 parent 955ef7e commit 202fb59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview-ui/src/components/chat/ApiConfigSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const ApiConfigSelector = ({
109109
<Button
110110
variant="ghost"
111111
size="icon"
112+
tabIndex={-1}
112113
onClick={(e) => {
113114
e.stopPropagation()
114115
togglePinnedApiConfig(config.id)

0 commit comments

Comments
 (0)