Custom header is not working with month select
See original GitHub issueDescribe the bug Custom header is not working with month select. I just copy/pasted the code from the example with month select only and the app crashes when I open the datepicker.
To Reproduce Please see this codesandbox and click on Start or End date.
Expected behavior A datepicker would open when I click on it.
Screenshots
Here is the screenshot of the error.
Desktop (please complete the following information):
- macOS Mojave
- Chrome
- Version 79.0.3945.79
Additional context
Datepicker is used with react-final-form
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Custom Header for Date Picker - Stack Overflow
I've read the documentation of pickadate.js but there is no mention about such a customization. Any suggestions? javascript · jquery ...
Read more >Custom Header – Select Template not showing | WordPress.org
Go to Appearance > Customize > Header > General, at the site side select any other page instead of the home page by...
Read more >Insert the date or time in a header or footer - Microsoft Support
Insert the current time in the header or footer · To print the time in regional format, click Time (Regional Format). With this...
Read more >622307 - Manual filter with custom header not working ("Run ...
But it does not work for custom headers such as "List-Id", "Sender", ... selecting the filter with custom headers and clicking "Run now"...
Read more >Datepicker - Angular Material
When a year or a month is selected in multi-year and year views respectively, ... to work with any arbitrary date representation with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem.
const years = range(1990, getYear(new Date()) + 1, 1);
@martijnrusschen Do you have any suggestions? Thank you for your time
@iloveip , @fatihyildizhan Because getMonth is not defined. You need to: import getMonth from “date-fns/getMonth”; or getMonth(date) replace with date.getMonth()