From b3e89cc12c608ca67d7c334ba680adbcc88aa786 Mon Sep 17 00:00:00 2001 From: Tristan Vermeesch Date: Tue, 26 Nov 2024 18:22:41 +0100 Subject: [PATCH] fix: remove wrong class assignment on year wrapper --- src/year.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/year.tsx b/src/year.tsx index bb8c36a96..b96e67087 100644 --- a/src/year.tsx +++ b/src/year.tsx @@ -407,15 +407,6 @@ export default class Year extends Component { return y === preSelected && !isPreSelectedYearDisabled ? "0" : "-1"; }; - getYearContainerClassNames = () => { - const { selectingDate, selectsStart, selectsEnd, selectsRange } = - this.props; - return clsx("react-datepicker__year", { - "react-datepicker__year--selecting-range": - selectingDate && (selectsStart || selectsEnd || selectsRange), - }); - }; - getYearContent = (y: number) => { return this.props.renderYearContent ? this.props.renderYearContent(y) : y; }; @@ -475,7 +466,7 @@ export default class Year extends Component { } return ( -
+