Nebular: Datepicker z-index

Created on 15 Nov 2018  路  11Comments  路  Source: akveo/nebular

Issue type

I'm submitting a ... (check one with "x")

  • [ ] bug report
  • [x ] feature request

Issue description

Current behavior:

when open datepicker nb-calender disappear behind the window.!
Expected behavior:

pop up over all.

image

minor enhancement theme

Most helpful comment

i resolved this by adding to scss file of the component:
/deep/ .nb-theme-corporate .cdk-overlay-container { z-index: 1080; }

All 11 comments

Same problem here, trying a alternative solution while it's not fixed

Hi @alsardy2002, could you please provide a reproducible example?

Hi @alsardy2002, could you please provide a reproducible example?

@Tibing just open the datepicker in a modal, may be the order of the elements, when i was trying and alternate solution, changed the order of the elements and it show on top of the modal

@Tibing hope this help

exemple-1
code

Ok @andredatsch, I see the issue now. You're using ng-bootstrap for modals. I think, the easiest solution for you now is to use Nebular Dialogs.

I changed to Dialogs, works just fine, thanks @Tibing, now i just have 40 forms to refactor lol

@andredatsch, fine. Let's keep this issue opened, we have to take a look on it deeper.

Datepicker component works fine with Nebular dialogs, but it has z-index issues with third-party modals.

i resolved this by adding to scss file of the component:
/deep/ .nb-theme-corporate .cdk-overlay-container { z-index: 1080; }

Thank you. That solved it.

None of the above worked for me!

The following is not a perfect solution but it's working.

Add some method that trigger's on mouseup to the input field.
method(){ if (document.getElementsByClassName("cdk-overlay-container")[0]){ document.getElementsByClassName("cdk-overlay-container")[0].setAttribute("style", "z-index: 1080;"); } }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnsnow20087349 picture johnsnow20087349  路  3Comments

maihannijat picture maihannijat  路  3Comments

andredatsch picture andredatsch  路  3Comments

bnbs picture bnbs  路  4Comments

nnixaa picture nnixaa  路  4Comments