-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatePicker popup attached to body is shown behind modal window #4278
Milestone
Comments
This seems to be a regression, as there was #3133 which is basically the same issue. As far as I can see, the issue is caused by
It seems that the z-index for the modal was increased, but Edit: found it: fc84cb1d. |
HexagonSun
pushed a commit
to HexagonSun/ng-bootstrap
that referenced
this issue
Mar 12, 2022
When using container="body", the datepicker's `z-index` must be equal or above the modal window's one (as defined in `modal.scss`). Fixes ng-bootstrap#4278
3 tasks
HexagonSun
added a commit
to HexagonSun/ng-bootstrap
that referenced
this issue
Mar 12, 2022
When using container="body", the datepicker's `z-index` must be equal or above the modal window's one (as defined in `modal.scss`). Fixes ng-bootstrap#4278
maxokorokov
pushed a commit
that referenced
this issue
Apr 4, 2022
When using container="body", the datepicker's `z-index` must be equal or above the modal window's one (as defined in `modal.scss`). Fixes #4278
Edit line 23 of modal-basic.html and the datepicker will be on top of the modal. @HexagonSun
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description:
Configuring a
NgbDatepicker
withcontainer="body"
and placing it within aNgbActiveModal
dialog causes the datepicker's popup to be shown underneath the modal's backdrop.Link to minimally-working StackBlitz that reproduces the issue:
https://stackblitz.com/edit/angular-ukonh5?file=src/app/modal-basic.html
This Stackblitz is forked from the "
Modal with default options" example here, and the only change is adding
container="body"
to the input.Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 13.0.3
ng-bootstrap: 12.0.0
Bootstrap: 5 (whatever ng-bootstrap 12.0.0 depends on, locally I use bootstrap 5.1.3)
The text was updated successfully, but these errors were encountered: