Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

onChange is not triggered when the input reach zero(empty) #172

Open
cloudsoh opened this issue Dec 5, 2019 · 1 comment
Open

onChange is not triggered when the input reach zero(empty) #172

cloudsoh opened this issue Dec 5, 2019 · 1 comment
Labels

Comments

@cloudsoh
Copy link
Contributor

cloudsoh commented Dec 5, 2019

Output
Dec-05-2019 14-22-02

Code

   onChange={(jsDate, dateString) => {
        console.log('onChange');
        this.setState({ datePickerInputDate: dateString });
   }}

Expected Behaviour
The onChange should trigger with Invalid Date or empty string "" returned.

cloudsoh added a commit to cloudsoh/rc-datepicker that referenced this issue Dec 5, 2019
@arjunmehta
Copy link

Also noticed this. Even when the input is cleared with the clear button it does not trigger onChange.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants