Blazored / Modal

A powerful and customizable modal implementation for Blazor applications.
https://blazored.github.io/Modal/
MIT License
772 stars 185 forks source link

[Feature Request] Allow access to specific modal instance inside modal to close parent modal #468

Open sskieller opened 1 year ago

sskieller commented 1 year ago

Allow access to specific modal instance inside modal, so that you can close the first modal opened while still keeping the second modal opened.

First modal opened First modal opens second modal First modal closed using its own instance ref Second modal still open

I have created a repro here: https://github.com/sskieller/Blazored.Modal-parent-child-repro

image

sskieller commented 1 year ago

Right now, if you close the 'parent' modal a flash occur where the second modal is initialized twice

sskieller commented 1 year ago

Updated with Repro