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 ( -
+