-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Show valid date range in initial view #258
Show valid date range in initial view #258
Conversation
] | ||
], | ||
resolve: { | ||
extensions: ["", ".jsx", ".js"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this actually does, but do you need to add ""
here? Or does [".jsx", ".js"]
work too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding ""
makes it so files required with their extension (e.g. import "./calendar.jsx"
) can be resolved. It's a default in webpack and I figured it would be good to keep around.
For reference: https://webpack.github.io/docs/configuration.html#resolve-extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding @RSO here since he did the initial Karma setup.
Apart from that small stylistic suggestion this looks good to me! |
Show valid date range in initial view
Thanks! |
Awesome, thanks for the CR! |
Fixes #209
If minDate is after the current date, the focus is set to minDate, and if maxDate is before the current date, the focus is set to maxDate.