SelectionType='single' and DateRange value
adam-dicker opened this issue · 1 comments
adam-dicker commented
I am try to render a DateRange using this component in single
mode. Click on a single date, and then render the whole week for that day as selected. Is this supported?
Basically it boils down to:
<DateRangePicker
value={{start: start, end: end}}
selectionType={'single'}
/>
I am getting the following error:
TypeError: Cannot read property 'year' of undefined
at isVisible (DateRangePicker.js:434)
at Object.isStartOrEndVisible (DateRangePicker.js:441)
at Object.DateRangePicker_componentWillReceiveProps [as componentWillReceiveProps] (DateRangePicker.js:156)
at callComponentWillReceiveProps (react-dom.development.js:12994)
at updateClassInstance (react-dom.development.js:13200)
at updateClassComponent (react-dom.development.js:17131)
at beginWork (react-dom.development.js:18653)
at HTMLUnknownElement.callCallback (react-dom.development.js:188)
at Object.invokeGuardedCallbackDev (react-dom.development.js:237)
at invokeGuardedCallback (react-dom.development.js:292)
Valicious commented
The issue still seems to be present. Any indication that this is being looked into?