mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[LineChart] Latest version prints React warnings

Open Janpot opened this issue 1 year ago • 4 comments

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/billowing-fog-39pdzs?file=%2Fsrc%2FDemo.tsx

Steps:

  1. Open the example
  2. Check the console

Current behavior

It prints

Warning: Unknown event handler property `onAreaClick`. It will be ignored.
...

and

Warning: Unknown event handler property `onMarkClick`. It will be ignored.
...

Expected behavior

No warnings printed

Context

Discovered because it broke the Toolpad tests during last renovate upgrade cycle: https://app.circleci.com/pipelines/github/mui/mui-toolpad/15000/workflows/7cb28836-1265-47b2-838d-9dc1d8376bf5/jobs/69929?invite=true#step-106-25841_89

Would recommend setting up the tests to catch these warnings by default.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: onMarkClick

Janpot avatar Jun 24 '24 11:06 Janpot

Additionally, the stackblitz is broken for that demo.

Janpot avatar Jun 24 '24 11:06 Janpot

The error got fixed today in #13609

But I keep the issue open until we add the testing script

alexfauquette avatar Jun 24 '24 12:06 alexfauquette

I'm still facing this error.. Is the bug already got fixed or not?

si-saaref avatar Jun 27 '24 09:06 si-saaref

The fxed version should be published during the day

alexfauquette avatar Jun 27 '24 11:06 alexfauquette

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

github-actions[bot] avatar Nov 26 '24 09:11 github-actions[bot]