React-datepicker: using showmonthyeardropdown crashes the web page

Created on 20 Jan 2020  路  5Comments  路  Source: Hacker0x01/react-datepicker

Just installed the base version and things were working fine.
However, when I added the attribute showMonthYearDropdown, and then clicked on the down arrow for year, the webpage freezes up and the only way to get out is to kill the page.

I tried showYearDropdown and showMonthdrop down separately, and these seem to work fine.
It appears to be with this specific setting.

Most helpful comment

The show month and year dropdowns also crash in the demo page documentation.

All 5 comments

The show month and year dropdowns also crash in the demo page documentation.

This should be fixed with #2132 merged. We will release a new version shortly.

Just installed v3.0.0 today. Found that the showMonthYearDropdown option will crash if you leave out the minDate and maxDate parameters.

Same issues. @ttchuah 's suggesion is a working workaround.

Still crashing, so this is not fixed.

For now @ttchuah's solution is working.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahribori picture ahribori  路  3Comments

sarav1234 picture sarav1234  路  3Comments

lclemence picture lclemence  路  3Comments

arturictus picture arturictus  路  3Comments

pinturic picture pinturic  路  3Comments