From 23bcd258cd455b10ef298c5b596db244b4d6e519 Mon Sep 17 00:00:00 2001 From: jian zhou Date: Tue, 17 Dec 2024 18:26:42 +0100 Subject: [PATCH] fix: add TODO comments for unresolved issues in Day component methods --- src/day.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/day.tsx b/src/day.tsx index 833aa43af4..ef1003531f 100644 --- a/src/day.tsx +++ b/src/day.tsx @@ -180,6 +180,7 @@ export default class Day extends Component { isSameDay(this.props.day, other); isKeyboardSelected = () => { + // TODO: Fix this if (this.props.disabledKeyboardNavigation) { return false; } @@ -290,6 +291,7 @@ export default class Day extends Component { startDate, endDate, } = this.props; + // TODO: Fix this const selectingDate = this.props.selectingDate ?? this.props.preSelection; @@ -345,6 +347,7 @@ export default class Day extends Component { }; isSelectingRangeEnd = () => { + // TODO: Fix this if (!this.isInSelectingRange()) { return false; } @@ -397,6 +400,7 @@ export default class Day extends Component { isCurrentDay = () => this.isSameDay(newDate()); isSelected = () => { + // TODO: Fix this if (this.props.selectsMultiple) { return this.props.selectedDates?.some((date) => this.isSameDayOrWeek(date),