You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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 functionalityhitting "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
The text was updated successfully, but these errors were encountered: