Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

86
Views
Prevent selection of same dates react-day-picker

I'm using react-day-picker and I when startDate is selected I want to prevent selection of same date. how is that possible? I tried incrementing startDate by 1 and set It as disabledDays before property but It messed up selection. so which is proper way to achieve this?

 disabledDays = {
      before: startDate,
    };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Maybe there is an easier way, but I achieved this using this:

handleDayClick(day) {
    if (this.state.from && DateUtils.isSameDay(day, this.state.from)) return;
    const range = DateUtils.addDayToRange(day, this.state);
    this.setState(range);
  }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!