Tempus-dominus: Datetimepicker coming behind div with position fixed

Created on 1 Nov 2016  路  14Comments  路  Source: Eonasdan/tempus-dominus

I have a static header and when i scroll to end, datetimepicker opens to the top but behind the header. Is there any way we can set the z-index of the datetimepicker widget?

Thanks.

image

v4

Most helpful comment

I had the same issue. I solved it by creating a custom css file and gave datepicker a new z-index.

.datepicker.dropdown-menu {
    z-index: 9999 !important;
}

All 14 comments

I have a similar problem in a complex page. Trying the classic datepicker of jquery instead the problem is not there.
All the parent divs have relative position but the widget seems close into the first parent.

Following the discussion and thanks in advance

I actually want the time picker as well. So i do not see any better time picker. Do you know any better time picker i can use instead of this?
Thanks

"top": "auto", "bottom": "auto", "left": "auto", "right": "auto", "position": "fixed"

I had the same issue. I solved it by creating a custom css file and gave datepicker a new z-index.

.datepicker.dropdown-menu {
    z-index: 9999 !important;
}

Hi,
I'm also facing the same issue. Can someone help me with the same.

I had the same issue. I solved it by creating a custom css file and gave datepicker a new z-index.

.datepicker.dropdown-menu {
    z-index: 9999 !important;
}

Great workaround.

same with datetime picker

.bootstrap-datetimepicker-widget.dropdown-menu {
    z-index: 9999 !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
z-index: 9999 !important;
}

is not working in accordion. See:
image

i used datetimepicker

I had to use javascript to add and remove style overflow="visible" when I clicked to expand and contract the accordion menu I was using.

document.getElementById("name-of-div").style.overflow = "visible";

.bootstrap-datetimepicker-widget.dropdown-menu {
z-index: 9999 !important;
}

is not working in accordion. See:
image

i used datetimepicker

Am also facing a similar issue! Did you happen to find a resolution to this accordion issue? Can you please help?

Same issue here. Version 4.17. 47

worked for me
.bootstrap-datetimepicker { z-index: 9999 !important; }

.bootstrap-datetimepicker-widget.dropdown-menu {
z-index: 9999 !important;
}

is not working in accordion. See:
image
i used datetimepicker

Am also facing a similar issue! Did you happen to find a resolution to this accordion issue? Can you please help?

No, I scrapped my project and make a hiding div with jquery hide and show than using accordion.

Hello. Thanks for using my project. We鈥檙e closing all tickets/prs for v4 as it is no longer supported. We鈥檙e making way for a new version. Please read this blog post

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dungphanxuan picture dungphanxuan  路  3Comments

y2kim picture y2kim  路  5Comments

brunoDegaspare picture brunoDegaspare  路  3Comments

justqyx picture justqyx  路  3Comments

illudens picture illudens  路  4Comments