palantir/blueprint

Date range picker: range selection to day not intuitive (not consistent with react-day-picker)

Open

#3890 aperta il 11 dic 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (2167 fork)batch import
P3Package: datetimeType: enhancementhelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

Environment

  • Package version(s): 3.22
  • Browser and OS versions: Firefox/Chrome 78.0 and Windows 10

Actual behavior

I have a range selected and I want to just select one specific day (without range). The way this works in Date range picker (BlueprintJS) implementation is not intuitive and also it is not consistent with how it works in react-day-picker.

Blueprint Date range picker: Video made directly from https://blueprintjs.com/docs/#datetime/daterangepicker

2019-12-11_12-47-58

Expected behavior

React-day-picker: Video made directly from http://react-day-picker.js.org/examples/selected-range/

2019-12-11_12-48-44

This method makes much more sense to me. If I have a range selected and click on either the start/end range day, then the range should be stopped and the individual day should be picked.

Possible solution

Guida contributor