Open midas-myth opened 9 months ago
can you assign me this issue
Yeah, I have the same issue,
it throws
Uncaught ReferenceError: Cannot access 'color' before initialization
Hi, there seems to be a bug, as there is no
color
in scope
If you want to just see the date ranges and not interact with it, you can disable pointer events for that div.
.rdrMonth {
pointer-events: none !important;
}
Found this solution:
Copy the code from the preview: https://hypeserver.github.io/react-date-range/#calendar
<DateRange
editableDateInputs={true}
onChange={(item) => setState([item.selection])}
moveRangeOnFirstSelection={false}
ranges={state}
/>
@70Ni Thank you for your suggestion. The method you provided was helpful.
Hi, there seems to be a bug, as there is no
color
in scopehttps://github.com/hypeserver/react-date-range/blob/6f86ccac37ada8d3aa8282c36f38cbf0c0063dcb/src/components/DateRange/index.js#L123