Skip to content

Line chart with onMouseEnter={undefined} or onMouseLeave={undefined} produces error #6968

Description

@SvetlanaVesna

What is the current behavior?

Image Errors with message `Uncaught TypeError: inputProps[key] is not a function` happen when user hover the line

What is the expected behavior?

No errors

Please provide a demo of the problem in a sandbox

[Here is how: https://github.com/recharts/recharts/wiki/How-to-share-a-demo

Please try to keep the demo as small as possible while still showing the problem.](https://stackblitz.com/edit/mgsuqetn-pb2ikn8r?file=src%2FExample.tsx,src%2Findex.tsx)

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

3.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions