question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom header is not working with month select

See original GitHub issue

Describe 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. Снимок экрана 2019-12-18 в 1 38 07

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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
fatihyildizhancommented, Oct 1, 2020

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

0reactions
oduvankacommented, Feb 13, 2022

@iloveip , @fatihyildizhan Because getMonth is not defined. You need to: import getMonth from “date-fns/getMonth”; or getMonth(date) replace with date.getMonth()

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found