React-datepicker: Rendering incorrectly using the datepicker in React 15.4.2

Created on 29 Mar 2017  路  5Comments  路  Source: Hacker0x01/react-datepicker

For some reason the calendar isn't rendering correctly and the only recent change we have made is upgrade to react

<DatePicker
                  label="Rent Begin"
                  placeholderText="Pick rent begin date"
                  minDate={moment()} // Today is minimum date
                  weekStart='0' // start on sunday
                  selected={this.state.rentBeginMoment ? moment(this.state.rentBeginMoment) : null}
                  onChange={this.handleChangeRentStartDate.bind(this)} />

screen shot 2017-03-29 at 2 11 54 pm

wontfix

Most helpful comment

I guess u people are forget to import the css file

i.e.., import 'react-datepicker/dist/react-datepicker.css';

All 5 comments

I am getting the same

I guess u people are forget to import the css file

i.e.., import 'react-datepicker/dist/react-datepicker.css';

Importing the CSS file working for me. Thanks @Yamini-Govardhani

It still didn't work for me

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings