Skip to content

Commit

Permalink
Fix slots and slotprops not working with tooltip in piecharts
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Apr 29, 2024
1 parent c0b6932 commit 78c2645
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 78c2645

Please sign in to comment.