You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(modals): add support for nested modals (fix scroll)
Twitter bootstrap (and so ngx-boostrap) doesn't officialy support nested modals.
You can however display nested modal but at least one issue appears:
At first modal you close, scroll events and scrollbar go back to the page, so
you can't scroll modals that are still displayed.
I propose to improve it with following modifications in modal component:
- at show, check if 'modal open' class is already attached to document body and
set `isNested` boolean accordingly
- at hide, if nested, do not remove 'modal open' class and do not reset
scrollbar.
Related to:
#896#1691
0 commit comments