Skip to content

Commit

Permalink
fix: correct type inheritance in CalendarContainer props
Browse files Browse the repository at this point in the history
Update CalendarContainerProps to extend HTMLAttributes<HTMLDivElement> instead of HTMLDivElement. This fixes the type definition to properly include all valid HTML attributes that can be passed to the div element, improving type safety and developer experience.
  • Loading branch information
iskkiri committed Jan 30, 2025
1 parent 3acee46 commit 1e5571d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calendar_container.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import React, { type HTMLAttributes } from "react";

export interface CalendarContainerProps
extends React.PropsWithChildren<HTMLDivElement> {
extends React.PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
showTimeSelectOnly?: boolean;
showTime?: boolean;
}
Expand Down

0 comments on commit 1e5571d

Please sign in to comment.