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
Hi!
I'm trying to set disabledDays with an array of {before, after} objects.
According to the modifiers documentation, it is permitted an array of any modifiers, so I was expecting to have my multiple ranges enabled, but instead every date gets disabled.
I realize I can get round this issue by writing a disabledDays function, or using another modifiers, but it seemed pretty straightforward to make it work with this array of objects.
I am not sure if I am missing something, if it could be a bug or a misinterpretation of the docs.
Thanks!
This discussion was converted from issue #1044 on February 10, 2021 02:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I'm trying to set disabledDays with an array of {before, after} objects.
According to the modifiers documentation, it is permitted an array of any modifiers, so I was expecting to have my multiple ranges enabled, but instead every date gets disabled.
https://codesandbox.io/s/react-day-picker-base-zuni0?file=/index.js
I realize I can get round this issue by writing a disabledDays function, or using another modifiers, but it seemed pretty straightforward to make it work with this array of objects.
I am not sure if I am missing something, if it could be a bug or a misinterpretation of the docs.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions