React-datepicker: Clear button is not working when date is given as input

Created on 20 Jul 2017  路  6Comments  路  Source: Hacker0x01/react-datepicker

I am using react datepicker in one of my project. I have been facing this issue. When I enter the date as input and try to clear it, it won't work. There is a state called "InputValue" which gets set when date is given as input. On clear it has to be set as null but does not.

Steps to replicate:

  1. Go to https://hacker0x01.github.io/react-datepicker/#example-18
  2. Find the example "Clear datepicker input"
  3. Input a date eg. "07/10/2017".
  4. Click on clear button. It does not work.

Gave an input date
screen shot 2017-07-20 at 3 11 23 pm

Clicked on clear button
screen shot 2017-07-20 at 3 11 34 pm

Most helpful comment

The clear button is still not working on Firefox.

All 6 comments

Any progress on this issue?

@MarkusLund this doesn't appear to be an issue on the demo site using the repro steps, do you have any more info?

The issue can be replicated in demo. If you enter the date manually and try to clear, it won't work.

@rafeememon As @bid007 are stating, this is an issue in both my local version and the demo.

Cool, PRs to fix it are welcome

The clear button is still not working on Firefox.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tamitutor picture tamitutor  路  3Comments

dhruvparmar372 picture dhruvparmar372  路  3Comments

kkras3 picture kkras3  路  3Comments

ro-savage picture ro-savage  路  3Comments

jjjss94 picture jjjss94  路  3Comments