From 82fd8dea9c198c1b016c7853d76b2160ef410bb9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 13 May 2024 11:14:31 -0400 Subject: [PATCH] Fix #6614: Chart update TypeScript to inherit DIV (#6618) --- components/lib/chart/chart.d.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/lib/chart/chart.d.ts b/components/lib/chart/chart.d.ts index 890b11c0d8..c1f9cfcba5 100644 --- a/components/lib/chart/chart.d.ts +++ b/components/lib/chart/chart.d.ts @@ -45,11 +45,7 @@ export interface ChartPassThroughOptions { * Defines valid properties in Chart component. * @group Properties */ -export interface ChartProps { - /** - * Unique identifier of the element. - */ - id?: string | undefined; +export interface ChartProps extends Omit, HTMLDivElement>, 'ref' | 'content' | 'pt'> { /** * Type of the chart. */ @@ -74,14 +70,6 @@ export interface ChartProps { * Height of the chart in non-responsive mode. */ height?: string | undefined; - /** - * Inline style of the element. - */ - style?: React.CSSProperties | undefined; - /** - * Style class of the element. - */ - className?: string | undefined; /** * ARIA label for the chart canvas. Defaults to options.plugins.title.text if available. * @default options.plugins.title.text