React-dates: Dates are changing automatically. (Looks like Artificial intelligence is incorporated)

Created on 27 Sep 2019  路  5Comments  路  Source: airbnb/react-dates

react-dates version
e.g. [email protected]

Describe the bug
A clear and concise description of what the bug is.

Source code (including props configuration)
Steps to reproduce the behavior:

<DateRangePicker
  startDate={this.state.startDate}
  startDateId="your_unique_start_date_id"
  endDate={this.state.endDate}
  endDateId="your_unique_end_date_id"
  onDatesChange={({ startDate, endDate }) => this.setState({ startDate, endDate })}
  focusedInput={this.state.focusedInput}
  onFocusChange={focusedInput => this.setState({ focusedInput })}
/>

If you have custom methods that you are passing into a react-dates component, e.g. onDatesChange, onFocusChange, renderMonth, isDayBlocked, etc., please include the source for those as well.

Screenshots/Gifs
If applicable, add screenshots or gifs to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Is the issue reproducible in Storybook?
Please link to the relevant storybook example

Additional context
Add any other context about the problem here.

All 5 comments

Duplicate of #1804 #1800 #1799 #1795

I know it's a duplicate. But it's not resolved yet. How this can happen? I had great opinion about Airbnb, and their code has silly bugs like this?

Getting rid of react-dates, eslint-config-airbnb and other plugins. Thank you.

@naveenakadaba it is resolved, it's just not released yet.

If a single bug is enough to make you decide to jettison an entire ecosystem of code, then I'm not sure what to tell you. This is free software; you did not pay for it; you're not entitled to anything.

Not a single bug. I have a list. I just pointed out a silly bug (Not expected from a organisation which has a great ecosystem of code).

Anyway I appreciate your work. Its a good plugin though. Cheers

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thinhdd88 picture thinhdd88  路  22Comments

mccambridge picture mccambridge  路  20Comments

igorescobar picture igorescobar  路  25Comments

nkint picture nkint  路  21Comments

maxmoeschinger picture maxmoeschinger  路  68Comments