There’s a decent chance the dialog is mounting outside of the form, so a submit button within the dialog wouldn’t actually be within the form and therefore won’t submit it. I don’t know MUI too well, but there might be a prop that makes the dialog render in the same place as the button that initialises it. Failing that, you’ll likely need create an onSubmit function that submits your form and call it from within your dialog. You may need to pass this function as a prop to your dialog depending on how you’ve structured these components.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Unable to open/submit the interactive dailog form using mmpy_bot plugin | 1 | 867 | September 18, 2020 | |
| [solved] Interactive Dialog Submission is empty | 1 | 1309 | April 20, 2020 | |
| API endpoit of opening dialog vs submitting dialog | 1 | 532 | October 17, 2023 | |
| Cannot open interactive dialog | 10 | 2706 | July 3, 2021 | |
| Cannot open dialog | 11 | 2394 | June 9, 2023 |