react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

Fix set focusedRange to end date does not seems to make effect

Open rhogeranacleto opened this issue 4 years ago • 4 comments

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

rhogeranacleto avatar Aug 04 '21 14:08 rhogeranacleto

Maybe it is time to merge it? I faced the same issue and got stuck @burakcan @kamyar @mkg0

inzKornel avatar Dec 01 '21 13:12 inzKornel

@burakcan @kamyar @mkg0, guyz, are u there ?

YovkaHan avatar Feb 07 '22 15:02 YovkaHan

knock knock

ohiomanbo avatar Aug 31 '22 08:08 ohiomanbo

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.

burakcan avatar Sep 01 '22 17:09 burakcan