react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

Type error in hover event

Open TheLogan opened this issue 4 years ago • 0 comments

There seems to be an error in the type definition. I have the following code which works as expected, but I need the ts-ignore to have it not freak out, but apart from that the code runs as expected.

onHover={event => {
    // @ts-ignore
    event.event.target.style.cursor = 'pointer'
}}

onUnhover={event => {
    // @ts-ignore
    event.event.target.style.cursor = 'auto'
}}

TheLogan avatar Jan 15 '21 09:01 TheLogan