Skip to content

Commit

Permalink
[@mantine/chart] BarChart: Fix BarLabel logging errors in the console (
Browse files Browse the repository at this point in the history
…#6810)

* [@mantine/chart] fix: console error of barlabel

* fix: fix confict issue
  • Loading branch information
Kenzo-Wada authored Sep 25, 2024
1 parent 5193ba7 commit afb82ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/@mantine/charts/src/BarChart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@ const varsResolver = createVarsResolver<BarChartFactory>(
})
);

export function BarLabel({ value, valueFormatter, ...others }: Record<string, any>) {
export function BarLabel({
value,
valueFormatter,
textBreakAll,
parentViewBox,
...others
}: Record<string, any>) {
return (
<text
{...others}
Expand Down

0 comments on commit afb82ca

Please sign in to comment.