Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError thrown when months-to-show greater than 3 #98

Open
dkhuntrods opened this issue Apr 5, 2019 · 3 comments
Open

TypeError thrown when months-to-show greater than 3 #98

dkhuntrods opened this issue Apr 5, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@dkhuntrods
Copy link

Hi there - first of all thank you for this package, great work.

I have had a look through the issues but haven't found this one yet.
I'm looking at using this in a current project, and one of the criteria is the option of having multiple months visible. However, I've copied the CDN setup directly from the installation instructions, and when I set months-to-show greater than 3, the datepicker throws 'TypeError: Cannot read property 'firstDateOfMonth' of undefined' and fails.

Here's a Codepen to demonstrate:
https://codepen.io/daniellehuntrods/pen/yrJYqz?editors=1111

Am I missing something, or could this be a bug?
Thank you!

@MikaelEdebro
Copy link
Owner

Yes this seems to be an error. I'll have a look at this.

@dkhuntrods
Copy link
Author

@MikaelEdebro brilliant, thank you!

@MikaelEdebro MikaelEdebro added the bug Something isn't working label Apr 17, 2019
@israelfloresdga
Copy link

So... someone know a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants