question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DatePicker's calendar falls behind other panels

See original GitHub issue

Hello I am using material UI, i use Cards as panels to style my pages, today i tried implanting the DatePicker but it seems that when i open the calendar it falls behind the other panels and even the elements inside the same panel (<Card>) Here is an image : https://ibb.co/842DZjq

I tried giving the DatePicker and the calendarClassName style, in which i changed the z-index and position, but none of them work and the calendar still doesn’t open in the front Can you help me solve this issue ?, is there some kind of property that i don’t know about ? Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Kiarash-Zcommented, Jul 21, 2019

Hello, Have you tried using wrapperClassName instead of calendarClassName? you can try it. if it doesn’t work, you can try wrapping the whole <DatePicker /> component in a div tag as:

<div style={{ position: 'relative', zIndex: '100' }}>
  <DatePicker
    ...someProps
   />
</div>
2reactions
me82852578commented, Jan 6, 2021

This is my solution, maybe not the best, but at least I have been running well in my project for a while . solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the pop-up position of the jQuery DatePicker ...
Good trick. Problem is that in cases where the datepicker is shown beyond screen borders, the _showDatepicker will try to relocate it, therefore,...
Read more >
Date-Popup Shows up behind all other fields - Drupal
When you click on the popup calendar, it shows up behind all the fields around it, making selection of hidden days impossible.
Read more >
Designing The Perfect Date And Time Picker
First things first, though: Date pickers are often considered to be a foolproof component for date selection — predictable, consistent, ...
Read more >
Datepickers - Lightning Design System
The datepicker is a form element, containing a label and text input, and a dropdown menu, containing a grid-based calendar and filters.
Read more >
Date picker – Carbon Design System
Use a calendar picker when the user needs to know a date's relation to other days such as the day of the week...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found