React-datepicker: Showing only current month dates? Ignore any leading/trailing days?

Created on 22 Sep 2018  路  2Comments  路  Source: Hacker0x01/react-datepicker

Current implementation would seem to include a "full month" of days, so if the current month doesn't take up a full 31 days, the remaining days are filled in with prior and/or next month days. I'd prefer to exclude these filler days and simply leave them blank.
Is there some way to achieve this?

Most helpful comment

Yes I did... there's a class for the dates that aren't in the month (react-datepicker__day--outside-month), that I overwrote to basically hide these elements.

All 2 comments

Did you find a way to do this?

Yes I did... there's a class for the dates that aren't in the month (react-datepicker__day--outside-month), that I overwrote to basically hide these elements.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ro-savage picture ro-savage  路  3Comments

carmouche picture carmouche  路  3Comments

lclemence picture lclemence  路  3Comments

formigone picture formigone  路  3Comments

kkras3 picture kkras3  路  3Comments