hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.59k stars 679 forks source link

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

Open rhogeranacleto opened 3 years ago

rhogeranacleto commented 3 years ago

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

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

inzKornel commented 2 years ago

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

YovkaHan commented 2 years ago

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

ohiomanbo commented 2 years ago

knock knock

burakcan commented 2 years ago

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.