React-dates: I want to enable past and present dates.

Created on 26 Oct 2017  路  4Comments  路  Source: airbnb/react-dates

I want to enable past and present dates to choose.

Most helpful comment

isOutsideRange = {() => false}
To enable every date

All 4 comments

This is possible. What is the question or problem you're having?

@erin-doyle thanks for your reply. my question is how to do that?

i found solution for this.

isOutsideRange={(day) => {
return !day.isSameOrBefore());
}}

isOutsideRange = {() => false}
To enable every date

Thank you for saving my time @Parthchokshi

isOutsideRange = {() => false}

To enable every date

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wub picture wub  路  20Comments

comron picture comron  路  22Comments

maxmoeschinger picture maxmoeschinger  路  68Comments

rodryquintero picture rodryquintero  路  70Comments

nkint picture nkint  路  21Comments