lepikhinb / momentum-modal

MIT License
442 stars 26 forks source link

How to show Modal from another Modal #51

Closed mansoorkhan96 closed 1 year ago

mansoorkhan96 commented 1 year ago

Hi,

I need to show a Modal from within a Modal. I have an existing form in Modal-A and it has a button to open up another Modal-B. Once the user has submitted Modal-B form, i need to redirect back to Modal-A.

Is this possible right?

mansoorkhan96 commented 1 year ago

https://github.com/lepikhinb/momentum-modal/issues/50#issuecomment-1432619890

limsocheat commented 1 year ago

Hi, how you managed to do it? I have installed the same version of Axios, but still not working.

I have

  1. Modal A to display product form.
  2. Modal B: to display create a new category form

I want to keep modal A open, and the user can click on the "add new category button" to open modal B. After modal B is closed, it should be redirected to modal A. But the problem is when I closed modal B, it redirected to baseRoute of modal A instead.