Skip to content

cant select only one day in range selection #396

@Bludecoder2

Description

@Bludecoder2

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions