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

Request: Add option where selecting a date in-view doesn't cause a focus change

Open lexispike opened this issue 6 years ago • 9 comments

Subject of the issue

I'm using the DateRangePicker with 2 months showing with the horizontal display. When I select a date showing on the right calendar, the selection causes an auto-focus so that the selected date is now shown on the left calendar. With my use case, the user cannot select any date after today, so this behavior creates a weird experience when I select Today for example (where the right calendar is completely disabled).

Alternatively, if this issue was fixed, I think that would fix my base issue here, but I still think having this as an option would be net-positive.

Environment

Package Version: 1.1.3 React version: 16.8.6 Node version: 8.17.0 Browser: Chrome 85.0.4183.121

lexispike avatar Nov 10 '20 18:11 lexispike

I'd also like this be implemented

Wgil avatar Jan 08 '21 21:01 Wgil

Is there any chance a maintainer could consider including this functionality? There's a pull request created already

Wgil avatar Jan 11 '21 13:01 Wgil

This functionality would be amazing to have

ginnerzapata avatar Jan 11 '21 13:01 ginnerzapata

We desperately need this. The current behavior is a disaster, the calendar is flipped under the user's cursor without them moving the mouse basically preselecting/highlighting a 1 month period without them actively interacting with the multi-month calendar. Super confusing.

Skorpioh avatar Jan 29 '21 16:01 Skorpioh

Too bad I haven't found this issue earlier, so I wouldn't have to create a new one. But I'm still facing the same problem and I would really appreciate it we could have this fix implemented as soon as possible. Thank you!

teksebarna avatar Feb 01 '21 14:02 teksebarna

I have the same problem implementing it in the vertical scroll, when I click next month it jumps to the selected month making the user experience strange. Any solution for that?

dashdanilo avatar Feb 02 '21 21:02 dashdanilo

Sorry for the late reply. This is indeed an issue that is annoying. Please let me know what you think about https://github.com/hypeserver/react-date-range/pull/428 and we can try to include that in the next release.

kamyar avatar Jun 10 '21 23:06 kamyar

Any chance to get the #428 reviewed? Seems like is ready to be merged.

peterschwarzdev avatar Aug 16 '21 07:08 peterschwarzdev

Fixed in 1.4.0

kamyar avatar Sep 13 '21 15:09 kamyar