akhaliq HF Staff commited on
Commit
e15089a
·
1 Parent(s): 7f3ba91

Make text-only example chips send immediately

Browse files
Files changed (1) hide show
  1. index.html +1 -2
index.html CHANGED
@@ -333,8 +333,7 @@ document.querySelectorAll(".chip").forEach(chip => {
333
  chip.onclick = () => {
334
  input.value = chip.dataset.text;
335
  input.dispatchEvent(new Event("input"));
336
- if (chip.dataset.url) { send(chip.dataset.url); }
337
- else input.focus();
338
  };
339
  });
340
  </script>
 
333
  chip.onclick = () => {
334
  input.value = chip.dataset.text;
335
  input.dispatchEvent(new Event("input"));
336
+ send(chip.dataset.url || null);
 
337
  };
338
  });
339
  </script>