Repository: stable-diffusion-webui
Issue: [Bug]: Generate Button throws ReferenceError: submit is not defined Error
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Clicking the generate button throws a ```ReferenceError: submit is not defined``` error and does nothing.

### Steps to reproduce the problem

1. Load program
2. Enter description of image
3. Click Generate


### What should have happened?

Generation process should begin.

### Commit where the problem happens

89f9faa

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Microsoft Edge

### Command Line Arguments

```Shell
--xformers
```


### List of extensions

None

### Console logs (Firefox)

```Shell
Uncaught (in promise) ReferenceError: submit is not defined
    anonymous Blocks-842d53a2.js line 35 > AsyncFunction:3
    xe Blocks-842d53a2.js:36
    uo Blocks-842d53a2.js:36
    Cn index.mjs:1170
    Cn index.mjs:1170
    f Button.svelte:12
    Cn index.mjs:1170
    Cn index.mjs:1170
    v Button.svelte:11
    Te index.mjs:421
    m Button.svelte:25
    me index.mjs:2030
    m Button.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Row.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Column.svelte:24
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Row.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m TabItem.svelte:24
    m index-cb14108f.js:1
    m Column.svelte:24
    me index.mjs:2030
    m TabItem.svelte:35
    me index.mjs:2030
    m Tabs.svelte:10
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m index-d7a9d4ac.js:1
    m Tabs.svelte:75
    me index.mjs:2030
    m index-d7a9d4ac.js:1
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Column.svelte:24
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:34
    p Blocks-842d53a2.js:35
    Mn index.mjs:1273
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    He Index.svelte:270
    i Index.svelte:331
    ctx index.mjs:2102
    Ns Blocks-842d53a2.js:36
    promise callback*Ns/< Blocks-842d53a2.js:36
    promise callback*Ns Blocks-842d53a2.js:36
    De index.mjs:2098
    Rs Blocks-842d53a2.js:36
    zo Index.svelte:331
    p Index.svelte:284
    Vt index.mjs:100
    p Embed.svelte:25
    Mn index.mjs:1273
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    Ee Index.svelte:228
    Ve Index.svelte:261
    update Index.svelte:223
    Mn index.mjs:1269
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    Lo Index.svelte:197
    It index.mjs:20
    me index.mjs:2034
    en index.mjs:1255
    De index.mjs:2130
    Mo Index.svelte:223
    connectedCallback main.ts:71
    Po main.ts:98
    <anonymous> main.ts:101
Blocks-842d53a2.js line 35 > AsyncFunction:3:14
```

(Microsoft Edge):

```Error: submit is not defined
    at Object.eval [as frontend_fn] (eval at <anonymous> (Blocks.svelte:67:25), <anonymous>:3:14)
    at xe (Blocks.svelte:290:6)
    at HTMLButtonElement.<anonymous> (Blocks.svelte:349:7)
    at index.mjs:1170:44
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.Cn (index.mjs:1170:27)
    at HTMLButtonElement.f (Button.svelte:12:51)
    at index.mjs:1170:44
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.Cn (index.mjs:1170:27)
eval @ VM39:3
xe @ Blocks.svelt```


### Additional information

_No response_