You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
^7.15.1
What package has an issue?
@mantine/charts
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
When using a BarChart and passing in gridColor and/or textColor props I receive the following error from React:
Warning: React does not recognize the gridColor prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase gridcolor instead. If you accidentally passed it from a parent component, remove it from the DOM element.
I suspect this is likely the same problem seen in this issue (and its related PR) in which props were being unintentionally spread across an element that can't accept them.
I was originally on version 7.7.2, upgraded all mantine packages to 7.15.1 while looking for a fix and was still able to reproduce.
If possible, include a link to a codesandbox with a minimal reproduction
Dependencies check up
What version of @mantine/* packages do you have in package.json?
^7.15.1
What package has an issue?
@mantine/charts
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
When using a
BarChart
and passing ingridColor
and/ortextColor
props I receive the following error from React:I suspect this is likely the same problem seen in this issue (and its related PR) in which props were being unintentionally spread across an element that can't accept them.
I was originally on version
7.7.2
, upgraded all mantine packages to7.15.1
while looking for a fix and was still able to reproduce.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-yqwscq
Possible fix
Assuming my intuition about the cause is correct, I expect a fix will follow the same pattern as the PR linked above on a similar issue.
Self-service
The text was updated successfully, but these errors were encountered: