Closed
Description
Expected behavior
onBlur to be called once.
Actual behavior
onBlur is called twice. Once with event and second time without event.
Steps to reproduce
Setup a DatePicker with an onBlur callback. handleOnBlur will be called twice and the second time will cause an error because e is undefined
.
...
handleOnBlur = (e) => {
console.log(e.target.value);
}
<DatePicker
selected={this.state.startDate}
onChange={this.handleOnChange}
onBlur={this.handleOnBlur}
/>
...
Metadata
Metadata
Assignees
Labels
No labels