Skip to content

[@mantine/charts] PieChart: Fix incorrect @default JSDoc for withTooltip prop#9059

Open
Hossam-Ismail wants to merge 1 commit into
mantinedev:masterfrom
Hossam-Ismail:fix/piechart-withtooltip-default
Open

[@mantine/charts] PieChart: Fix incorrect @default JSDoc for withTooltip prop#9059
Hossam-Ismail wants to merge 1 commit into
mantinedev:masterfrom
Hossam-Ismail:fix/piechart-withtooltip-default

Conversation

@Hossam-Ismail

Copy link
Copy Markdown

The withTooltip prop JSDoc documents @default true, but the component's defaultProps sets withTooltip: false.

// packages/@mantine/charts/src/PieChart/PieChart.tsx
const defaultProps = {
  withTooltip: false,
  // ...
} satisfies Partial<PieChartProps>;

The @default annotation feeds the auto-generated props table on mantine.dev, so this corrects the documented default to match the actual value (false). Docs-only change, no runtime behavior affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant