react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Month selectors not displaying, even without min or max date

Open RyanNovas opened this issue 9 years ago • 2 comments

I am rendering this element:

<DatePicker className="due-date-input" onChange={this.handleChange} placeholderText={this.formattedForHumanDate(this.state.startDate)}/>

and in the browser it looks like this:

screen shot 2017-01-24 at 6 14 52 pm

I cannot figure out why the month selector arrows are not showing up. From the docs, it looks like they should be default.

RyanNovas avatar Jan 24 '17 23:01 RyanNovas

Any messages in the console? Any changes on the css definition? Does the document contain any element like the following if the calendar is popped out?

<a class="react-datepicker__navigation react-datepicker__navigation--previous">

Is the following css definition present on the page?

.react-datepicker__navigation--previous {
    left: 10px;
    border-right-color: #ccc;
}
.react-datepicker__navigation {
    line-height: 1.7rem;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 10px;
    width: 0;
    border: 0.45rem solid transparent;
    z-index: 1;
}

mgrdevport avatar Jan 27 '17 15:01 mgrdevport

@mgrdevport We were missing the z-index! Thank you for your help.

emilia-friedberg avatar Feb 02 '17 15:02 emilia-friedberg