I have a scenario were I have a modal that I open via dropdown. Within this modal is a component with the ability to open another modal. When Clicking the button on the modal inside of the other modal, it doesn't switch, it just closes the original modal. I think this is because the original modal is the "anchor" of the child modal and when it switches to the child it removes the original from the DOM?
If that's the case, is there a way to have it just hide the original modal without destroying it? If that's not the case, then I'm not sure what's happening. 🤔
This is slightly stripped down to remove some of the actual functionality, but the general premise remains.
I have a scenario were I have a modal that I open via dropdown. Within this modal is a component with the ability to open another modal. When Clicking the button on the modal inside of the other modal, it doesn't switch, it just closes the original modal. I think this is because the original modal is the "anchor" of the child modal and when it switches to the child it removes the original from the DOM?
If that's the case, is there a way to have it just hide the original modal without destroying it? If that's not the case, then I'm not sure what's happening. 🤔
This is slightly stripped down to remove some of the actual functionality, but the general premise remains.
Main Component:
MoveComponent:
SearchWidgetComponent:
When the button is pressed, you can see it briefly start to show the fade out/ fade in of the 2nd much larger modal, but then both are gone: