onDatesChange called before onClose
See original GitHub issueOn DateRangePicker
after selecting your end date the picker closes. onDatesChange
for the endDate selection is triggered after onClose
. It seems onClose should really be the final call.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:10
Top Results From Across the Web
onDatesChange called before onClose · Issue #532 - GitHub
onDatesChange for the endDate selection is triggered after onClose . It seems onClose should really be the final call.
Read more >onClose, react-date-presets returns undefined startDate ...
I have to find a way to grab the updated startDate and endDate inside the onClose function also if i select one range....
Read more >react-dates - npm
The DateRangePicker is a fully controlled component that allows users to select a date range. You can control the selected dates using the ......
Read more >react-dates/CHANGELOG.md - UNPKG
39, - [fix] Pass correct props to SingleDatePicker on close (@AlokTakshak, ... 88, - [breaking] Call `onDatesChange` before `onFocusChange` in the DRP ...
Read more >https://raw.githubusercontent.com/airbnb/react-dat...
... [fix] Pass correct props to SingleDatePicker on close (@AlokTakshak, ... 19.0.0 - [breaking] Call `onDatesChange` before `onFocusChange` in the DRP ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@meimei777 onClose() can get one parameter which is a object
{ startDate: moment{} endDate: moment{} }
you can get it here.As manu2784 mentioned, you can pass the dates as an object param to the onClose. You can use that instead of getting them from the this.state.