Skip to content

Commit a457828

Browse files
authored
fix(opencode): command palette mouse hover highlights wrong item (anomalyco#7721)
1 parent 4752c83 commit a457828

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
255255
props.onSelect?.(option)
256256
}}
257257
onMouseOver={() => {
258-
const index = filtered().findIndex((x) => isDeepEqual(x.value, option.value))
258+
const index = flat().findIndex((x) => isDeepEqual(x.value, option.value))
259259
if (index === -1) return
260260
moveTo(index)
261261
}}

0 commit comments

Comments
 (0)