I am using airbnb's DateRangePicker. Its current behavior doesn't allow selection of dates prior to the present date. How do I change it to allow selection of past dates as start date? here is the code being used
问问题
429 次
1 回答
2
正如您所知,这是完全可配置的,您可以指定一个道具来确定给定的候选日期是否对条目有效(默认情况下,此函数使过去的日期无效,我相信)
只需传递此道具即可确定每个日期都在范围内:
<DRP isOutsideRange={() => false} />
有关更多上下文,请参阅我找到答案的这个问题
于 2018-02-14T22:52:43.530 回答