event.preventDefault(); on model select through Enter
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
CHANGED
@@ -33,6 +33,7 @@
|
|
33 |
event.preventDefault();
|
34 |
dispatch("close");
|
35 |
} else if (key === "Enter") {
|
|
|
36 |
const highlightedEl = document.querySelector(".highlighted");
|
37 |
if (highlightedEl) {
|
38 |
(highlightedEl as HTMLButtonElement).click();
|
|
|
33 |
event.preventDefault();
|
34 |
dispatch("close");
|
35 |
} else if (key === "Enter") {
|
36 |
+
event.preventDefault();
|
37 |
const highlightedEl = document.querySelector(".highlighted");
|
38 |
if (highlightedEl) {
|
39 |
(highlightedEl as HTMLButtonElement).click();
|