Ngx-bootstrap: Feature request for modal via service: show backdrop for each nested modal

Created on 6 Nov 2018  路  2Comments  路  Source: valor-software/ngx-bootstrap

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.

comp(modal) feat-request

Most helpful comment

Any update on this issue? Its just hanging around for a while without any update or progress.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juanitavollmering picture juanitavollmering  路  3Comments

tuoitrexuquang picture tuoitrexuquang  路  3Comments

tpiros picture tpiros  路  3Comments

ghiscoding picture ghiscoding  路  3Comments

PascalHonegger picture PascalHonegger  路  3Comments