Skip to content

Commit

Permalink
[charts][PieChart] Fix prop.slots and prop.slotProps not passed t…
Browse files Browse the repository at this point in the history
…o `<ChartsTooltip />` (#12939)
  • Loading branch information
JCQuintas committed Apr 30, 2024
1 parent 0c13646 commit 0ae7e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x-charts/src/PieChart/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function PieChart(props: PieChartProps) {
<ChartsOverlay loading={loading} slots={slots} slotProps={slotProps} />
<ChartsLegend {...legend} slots={slots} slotProps={slotProps} />
<ChartsAxisHighlight {...axisHighlight} />
{!loading && <ChartsTooltip {...tooltip} />}
{!loading && <ChartsTooltip {...tooltip} slots={slots} slotProps={slotProps} />}
{children}
</ResponsiveChartContainer>
);
Expand Down

0 comments on commit 0ae7e4b

Please sign in to comment.