Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Aug 07 09:51
    zilkenberg22 opened #1054
  • Aug 06 23:32
    alekslario commented #1053
  • Jul 24 15:00
    DavidSvetlik opened #1053
  • Jul 21 19:43
    CezarCobuz commented #952
  • Jul 14 17:58
    rstrand commented #977
  • Jul 14 15:18
    parkeragee synchronize #1049
  • Jul 09 03:31
    ak212 opened #1052
  • Jul 08 11:25
    cjwiseman11 commented #798
  • Jul 08 08:38
    cjwiseman11 opened #1051
  • Jul 07 06:33
    Magomogo opened #1050
  • Jul 01 19:17
    parkeragee opened #1049
  • Jul 01 18:11
    a2441918 commented #878
  • Jun 23 15:56
    Michael-M-Judd edited #1048
  • Jun 23 15:55
    Michael-M-Judd opened #1048
  • Jun 21 11:06
    bilbobag edited #1047
  • Jun 21 11:04
    bilbobag opened #1047
  • Jun 19 15:59
    emilyuhde closed #1046
  • Jun 19 15:59
    emilyuhde commented #1046
  • Jun 19 13:29
    emilyuhde edited #1046
  • Jun 18 20:37
    emilyuhde edited #1046
Does anyone know if there's an easy way to prevent the year from changing in <DayPicker /> when a user presses the "down" or "up" arrow key on their keyboard while focused on the calendar? I have some users who use the keyboard to scroll up/down on the page and they're really confused by this feature. Thanks in advance for any help!
I want to start calendar week from Monday. I tried firstDayOfWeek={1} still starts with sunday. Does anyone know any solution for that?
secondly, I want to select multiple week in is there any way to do that?
Sibel Baslamisli
Hi, I am using date range and getting this error when i click the date "Warning: Failed prop type: Invalid prop fromMonth of type String supplied to DayPicker, expected instance of Date." Is there any way to fix this? Thank you.
@sialbul sounds like you are supplying a string e.g. '24/7/2019' instead of a dat e.g. new Date(2019, 7, 24)
@teechap you could try canChangeMonth={false} in the props... I think that will stop the arrow keys for the year change... although it will probably affect the changing of the month too - I've never tried that prop. If you didn't do that you'd have to get in and stop the key events from propagating up to the layer just below the container... You could potentially stop that using the renderMonths renderNav methods but it doesn't sound easy
@shukanshah if firstDayOfWeek={1} isn't working that sounds like a bug. For selecting multiple weeks, following the example should work fine except you'd need to set a separate range based on your date. I expect you'd just need to tinker with the getWeekRange method in that example to do what you want
can anyone help me to config react-day-picker with function component
Volkan Ongun
Does any one know if we can start the week from Monday for react day picker?
Mika Web Studio
@volkanongun You can use firstDayOfWeek for that:
Volkan Ongun
great lib, thanx! @milkins87_twitter
Bharath Kumar Ramasubramanian
@rbkumar88 there a way to add styles to the input box ?
sorry i am a css newbie
hi . i want to change react-day-picker's calendar to jalali calendar . how can i do it?
@volkanongun you can change firstDayOfWeek and set in on 3 to start the day of the week from monday
Jonatas Daniel
Hey guys, do you have some example how to use moment with react-day-picker? I need to change the dates based on a period (1 year, 1 month, etc), and set them to my date picker component
Laurens Bosscher
Hey, just wanted to drop by to let you guys know that react-day-picker has been an joy to work with! :)
keep up the good work!
Ahmed Ramadan
hello, i want to know if there is possible to choose 3 dates range (start,end,middle)
Isabeau Bergeron
Hi folks! We started using this lib for our product, we love it! I'd like to give you some of our needs and hopefully others for future features! It would be nice to have a click handler for the weekdays. In our app it is useful to select all weekdays at once. I've done the same for the month and the week, which have handlers. I'll modify the lib myself and see where it goes :)
Ryan Giordano
I ran into this gpbl/react-day-picker#723 when using custom inputs for DayPickerInput. I commented with what solved it locally for me, but wanted to chat about it before I made a PR with the fix.
how do i use 2 <DayPicker> in 1 <div>?
the 2 calendars are working togheter, if i click in one day, it will click in the other. i dont want that
Kaspar Rosin
Really could use an example on the main docs on how to remove single items from range. Let's say somebody picks a range from 1st october to 30th, but wishes to remove only the 15th.
Hi Gitter! I'm the maintainer of react-day-picker :wave: I'm working on the next release that will take some radical changes in the component. I'd love some help for testing the new API etc.
I'm also thinking to close this channel and move to

Hello friends can somebody help me with this basic question? In the document and examples it shows how to use month/year DropBox for one calendar. Can somebody help how to have this feature for 2 calendars? When I select a month from the second calendar it changes the first calendar. I am new to react - thank you.

When I select a month from the second calendar it changes the first calendar- i want a combination of these 2 examples:

hey @gpbl is this channel still active? or i should use the new chatroom you suggested?
Hello, can someone please accept this issue? gpbl/react-day-picker#990
Hi! Anyone knows how can I change DayPickerInput CSS styles if I added the lib through yarn?
Uyiosa Enabulele
Hi @gpbl I am trying to prevent the date range date picker to field from moving the selected month to the left when you click on a month on the right with hideOnDayClick set to false. is there a prop currently available to do that.
Onopko Dima
Hi guys, How can I style datePicker via css modules?

Hey guys.
What API for date does DayPicker use?
I'm mocking Date in mytest as here and keep getting console warning: Encountered two children with the same key, 197001.
I see that dates in calendar are actually correct, but aria-label="Thu Jan 01 1970"
Seems that my date mock breaks the library.

Any ideas?

Todd Chambery
Hi, I just want to say a big "Thanks!" for the extensive code examples on homepage
Kevin Denny II
Hi @gpbl!!!

I am having an issue, gpbl/react-day-picker#1045, utilizing the DayPicker api for use of the pop-up calendar. I need to close/hide when I click outside the calendar. I want to work like the DayPickerInput component work but with our the textbox input. I ONLY need the popup calendar. Using onBlur only partially works because if I click a week, it does not immediately recognize the focus the calendar container. I am really struggling with this and I am sure there is a simple solution.

Here is code snippet:

<div className={calendarPopOut} onBlur={handleClickOutside}>
     weekdayElement={<ThreeCharacterAbv />}


Robert Butler
So I'm wondering if I can style react-day-picker to work like a material design day picker; but I have some specific UX requirements on top of that to address as well; like I need to completely swap out the navigation for my own (we use two select boxes for picking which month/year you're looking at)
Robert Butler
Ah, okay
That actually works fine
Robert Butler
so is the typescript version stable-ish?
Roman Matias Ianni
Hi! there is an option to pass only available days? so the rest appears as disabled instead of passing explicitly the disabled days? thanks in advence!
Maksym Ozymok
Hi, please help me. I have problems with ReactDayPickerInput, I don't know which styles use with css-modules, maybe someone can sent me example of using css modules, css file, or repository on githab, because I am confused
Andy Fang
Is it possible to programmatically navigate to next month/previous months?
It's not well documented how to do that if you have custom nav arrows
Robert Butler
so finally getting back to the calendar here
after a short hiatus of stabbing my monorepo in the FACE (lmao)
Robert Butler