coreui / coreui-angular

CoreUI Components Library for Angular https://coreui.io/angular/docs/
https://coreui.io/angular/
MIT License
244 stars 145 forks source link

Calling a modal inside the modal #171

Closed 32x0lf closed 1 year ago

32x0lf commented 1 year ago

Hi,

I have this modal and I want to call another modal within this modal. When I tried to call the child modal using this.modalService.toggle( {show:true , id: ''childmodal'}) it will just close the parent modal and the child modal did not display as well. Am I doing something wrong? I have been calling modal from a parent component and it displays. Only calling a modal from a modal did not work for me. Please advise. Thank you

xidedix commented 1 year ago

@32x0lf This is by design. One modal window at a time. Nested modals aren’t supported as we believe them to be confusing.

32x0lf commented 1 year ago

Do you have any suggestion what alternative way or to use for this scenario @xidedix ?