onefinestay / react-daterange-picker

Other
563 stars 208 forks source link

Trying to select a date range of two days by dragging selects one day duration when day-long ranges allowed. #129

Open YosubShin opened 8 years ago

YosubShin commented 8 years ago

When day-long ranges are allowed, if one tries to select a date range that is of two days duration by drag-and-dropping mouse cursor, it ends up selecting only one day. For example, if you try to select a date range of "May 13th to May 14th", by pushing mouse button at "May 13th", drag the mouse cursor to "May 14th", and pull the mouse button while the cursor is on "May 14th", I end up only selecting one-day date range "May 13th to May 13th". If I drag my mouse cursor to outside of "May 13th" and "May 14th", and then finally come back to "May 14th", I can indeed select two days period.