mishig HF staff commited on
Commit
c6262f2
1 Parent(s): 0c66843

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();