pdufour commited on
Commit
2012cbe
1 Parent(s): 3f7320e

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -1
index.js CHANGED
@@ -383,7 +383,10 @@ uploadInput.addEventListener('change', (e) => {
383
  });
384
 
385
 
386
- form.addEventListener('submit', () => {
 
 
 
387
  if (!currentImage || !currentQuery) {
388
  status.textContent = 'Please select an image and type a prompt';
389
  } else {
 
383
  });
384
 
385
 
386
+ form.addEventListener('submit', (e) => {
387
+ e.preventDefault();
388
+ e.stopPropagation();
389
+
390
  if (!currentImage || !currentQuery) {
391
  status.textContent = 'Please select an image and type a prompt';
392
  } else {