react-date-range
react-date-range copied to clipboard
Fix set focusedRange to end date does not seems to make effect
Types of changes
This PR fixes the bug when setting the focusedRange={[0, 1]} does not show the end date of the range.
Put an x in the boxes that apply
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This PR basically changes this line https://github.com/hypeserver/react-date-range/blob/90c59accb6fcc3a0f34a2c57e318359aeb33ba01/src/utils.js#L30 to take into account the rangeElement param of focusedRange to set the shownDate.
Related Issue: fixes #506
Maybe it is time to merge it? I faced the same issue and got stuck @burakcan @kamyar @mkg0
@burakcan @kamyar @mkg0, guyz, are u there ?
knock knock
Please check the README.md. This project is currently not maintained by the authors. If anyone is willing to maintain, we'll add links to the active forks.