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

feature request: boolean prop to determine what happens when next/prev month buttons are clicked #61

Open
ggrillone opened this issue May 5, 2017 · 1 comment

Comments

@ggrillone
Copy link

ggrillone commented May 5, 2017

By next/prev buttons I'm referring to the buttons above the calendar that let you jump to the next or previous month.

I have a use case where it is not very user friendly to have it actually change the date when next/prev month is clicked. I expanded on this project to create a range picker with min/max date constraints.

Take the following use case:

You have the start date set to November 20th and the end date set to December 5th.
With the default behavior of the input-moment package, hitting "prev month" on the end date would change the end date to November 5th. With the added min/max date constraint functionality
hitting "prev month" in this case actually does nothing (because hitting prev month results in the end date becoming a value that is before the start date) and makes the calendar appear broken.

I would like to request a new boolean prop to allow us to toggle on/off if the actual date value changes when next/prev month buttons are clicked

@ggrillone
Copy link
Author

ggrillone commented May 5, 2017

I've recently forked this repo and I am going to take a stab at this in my own fork, but would definitely like to get it integrated into your repo since you are the original author. Btw, this is a great project, but just missing some key things that other date pickers typically have.

one of the main reasons I chose this package over others is that it doesn't depend on jquery which is pretty rare unfortunately, at least when you are using react as jquery becomes pretty pointless in that case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants