materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Cannot do anything with nested modal

Open tavsta opened this issue 9 years ago • 5 comments

Description

When opening a modal inside another modal. I can't not do anything except closing modal by clicking on .modal-overlay

Screenshots

image

Open parent modal image

Inside parent modal, I open other modal, so I cann't do anything... image

tavsta avatar Dec 30 '16 06:12 tavsta

@tavsta Can you mention your exact requirement and if possible share the code. In one of my projects i had requirement which was very much similar to this. What i opted for was placing all the modal screens in a single modal and toggling their visibility as per requirement.

developeranirudhprabhu avatar Dec 30 '16 06:12 developeranirudhprabhu

I know your solution, but we can't open multiple modals with a single modal. I want they appear at the same time. I think materialize css has problem with z-index in .modal-overlay. I worked around by setting all .moda-overlays has same z-index.

tavsta avatar Dec 30 '16 07:12 tavsta

@tavsta Can you share your code?

developeranirudhprabhu avatar Dec 30 '16 08:12 developeranirudhprabhu

Take a look at the code for this http://materializecss.com/test/html/multiple_modals.html

acburst avatar Jan 04 '17 03:01 acburst

having all the modals in the same level of hierarchy is not an ideal solution. I need to open a modal that can open another modal, and this modal can open a modal and so on infinitely.. putting all of this modals in a single level of hierarchy, will require all of my module to know about this modal structure. and I will lose the ability to have disconnected modules.

avrahamcool avatar Mar 23 '17 21:03 avrahamcool