-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi @aadilhasan ,
It would be possible to implement the following features:
- When
selectTime
istrue
, give the possibility to decide for theAM-PM
format or the24-hour
format. - To be able to decide the formatting of the date, ex:
dd/mm/yyyy
ordd-mm-yyyy h:mm
. - Being able to decide the separator between the two dat, ex
~
or-
, or other. - Make sure that dates prior to today's date are not selectable, if required.
- Make sure that the months preceding the current month are not possible to scroll, if required.
- Make sure you can customize the colors of the calendar, for example if you want to change the background color of the calendar to have it in dark mode, or want it dark blue, or the color of the text.
Bug, looking at the following example from the first calendar which is of type disableRange
:
If the Today button is selected, a range is set, but it should not be so, then if I select a different date than today, setting the time, strange things happen.
The last date I selected with the time previously set from the current date is set, from which the current date that I had previously selected with the last time I set was set.
Link: https://codesandbox.io/s/react-range-picker-8bdzy
Then take a look at:
src/components/date-grid/index.js
line 42 do not make areturn false;
but onlyfalse;
Metadata
Metadata
Assignees
Labels
No labels