-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Description
In an older version of react I could select the same day twice in the range selection. That would allow me to select a range of one day.
Now I can't do that anymore.
thats how I implement the range selection:
<CalendarPicker
onDateChange={onDateChange}
selectedStartDate={isDateStartChange}
minRangeDuration={0}
maxRangeDuration={14}
selectedEndDate={isDateEndChange}
allowRangeSelection={true}
selectedRangeStyle={{
backgroundColor: "#ec672f",
color: "white",
}}
firstDay={1}
todayBackgroundColor={"#d1cdc0"}
selectYearTitle={"Jahr auswählen"}
selectMonthTitle={"Monat auswählen "}
selectedDayStyle={{
borderWidth: 0,
color: "white",
borderColor: "#11322e",
backgroundColor: "#ec672f",
}}
weekdays={["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]}
months={["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]}
nextComponent={<Icon name="arrow-right-bold" color="#ec672f" type="material-community" style={{ marginRight: 10 }} />}
previousComponent={<Icon name="arrow-left-bold" color="#ec672f" type="material-community" style={{ marginLeft: 10 }} />}
/>
Anyone any idea why its broken or better how to fix it?
Metadata
Metadata
Assignees
Labels
No labels