Open exsoflowe opened 5 years ago
If I use nested modals, modal service can show only one backdrop. See demo in documentation: https://valor-software.com/ngx-bootstrap/?gclid=EAIaIQobChMI2Nv51f2_3gIVRqQYCh1dOgJhEAAYASAAEgJrEPD_BwE#/modals#service-nested
There is condition for this behavior in _showBackdrop() method: https://github.com/valor-software/ngx-bootstrap/blob/development/src/modal/bs-modal.service.ts if (this.modalsCount === 1) {...}
if (this.modalsCount === 1) {...}
But directive mode has difference: each nested modal has own backdrop. See demo in documentation: https://valor-software.com/ngx-bootstrap/?gclid=EAIaIQobChMI2Nv51f2_3gIVRqQYCh1dOgJhEAAYASAAEgJrEPD_BwE#/modals#directive-nested
ngx-bootstrap: 3.1.1 and lower
Angular: 5, 6, 7
Bootstrap: any
Could you explain this difference in behavior? Thanks.
Any update on this issue? Its just hanging around for a while without any update or progress.
This feature would be a great addition and much needed.
Feature request:
If I use nested modals, modal service can show only one backdrop. See demo in documentation: https://valor-software.com/ngx-bootstrap/?gclid=EAIaIQobChMI2Nv51f2_3gIVRqQYCh1dOgJhEAAYASAAEgJrEPD_BwE#/modals#service-nested
There is condition for this behavior in _showBackdrop() method: https://github.com/valor-software/ngx-bootstrap/blob/development/src/modal/bs-modal.service.ts
if (this.modalsCount === 1) {...}
But directive mode has difference: each nested modal has own backdrop. See demo in documentation: https://valor-software.com/ngx-bootstrap/?gclid=EAIaIQobChMI2Nv51f2_3gIVRqQYCh1dOgJhEAAYASAAEgJrEPD_BwE#/modals#directive-nested
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 3.1.1 and lower
Angular: 5, 6, 7
Bootstrap: any
Could you explain this difference in behavior? Thanks.