Skip to content
Discussion options

You must be logged in to vote

@dtg-coder from your code it looks like you are overriding the holiday modifiers with the last allDaysInTimeOff. Your types["holiday"] should be initialized as an empty array, so than you can write:

- types["holiday"] = allDaysInTimeOff;
+ types["holiday"].push(allDaysInTimeOff);

please provide a more complete example in a code sandbox if you need more help:

https://codesandbox.io/p/sandbox/react-day-picker-wfy7mq

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gpbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Lacks enough details to make progress
2 participants