Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized prop error in @mantine/charts #7349

Closed
1 of 2 tasks
paddyvypr opened this issue Jan 13, 2025 · 2 comments
Closed
1 of 2 tasks

Unrecognized prop error in @mantine/charts #7349

paddyvypr opened this issue Jan 13, 2025 · 2 comments
Labels

Comments

@paddyvypr
Copy link

Dependencies check up

  • 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/core

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Chrome

Describe the bug

When using a BarChart and passing in textColor props I receive the following error from React:

Warning: React does not recognize the textColor prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase textcolor 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 here and here in which props were being unintentionally spread across an element that can't accept them.

If possible, include a link to a codesandbox with a minimal reproduction

https://codesandbox.io/p/sandbox/mantine-react-template-forked-yqwscq

Possible fix

The same fix applied for gridColor here

Self-service

  • I would be willing to implement a fix for this issue
@rtivital
Copy link
Member

It was fixed in 7.15.3

@dcentrih
Copy link

There's also the gridColor prop with the same issue. Package version 7.16.0.

@rtivital rtivital added the Fixed label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants