hypeserver / react-date-range

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

Fix wrong daterange on hover bug #395

Closed lucyyu24 closed 3 years ago

lucyyu24 commented 4 years ago

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

Description

Fixed wrong daterange on hover bug by processing value through calcNewSelection before feeding into updatePreview. Used typeof value === "string" to determine whether the isSingleValue.

Related Issue: #368

ayxos commented 4 years ago

Can this be merged?

burakcan commented 3 years ago

thank you @lucyyu24

adamstorr commented 3 years ago

Thanks for getting this in! When can we expect this to be released?

burakcan commented 3 years ago

@adamstorr I will publish a new version including this and some other fixes this week.