We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c14f5 commit 3785eedCopy full SHA for 3785eed
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
@@ -24,8 +24,10 @@
24
event.preventDefault();
25
dispatch("close");
26
} else if (key === "Enter") {
27
- const searchEls = (containerEl.firstChild?.childNodes ?? []) as HTMLAnchorElement[];
28
- searchEls?.[highlightIdx].click();
+ const highlightedEl = document.querySelector(".highlighted");
+ if (highlightedEl) {
29
+ (highlightedEl as HTMLButtonElement).click();
30
+ }
31
} else if (key === "ArrowUp") {
32
33
highlightIdx--;
0 commit comments