Chart Events only fire on right-click

1 Answer 26 Views
Charts
Matthew
Top achievements
Rank 1
Matthew asked on 20 Jan 2025, 09:26 PM

We have implement both a line and bar chart. After running a few tests none of the click events for the chart will fire using the left mouse button. All of them fire with the right-click. IS there a way to change this behavior to use a left-mouse-click?


const handlePlotAreaClick = (event: PlotAreaClickEvent) => { debugger }
const handleAxisLabelClick = (event: any) => { debugger }

<Chart
     onPlotAreaClick={(event: PlotAreaClickEvent) =>
        handlePlotAreaClick(event)
      }
      onAxisLabelClick={(event: any) => handleAxisLabelClick(event)}
    >
...
</Chart>

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 22 Jan 2025, 06:00 PM

Hello, Matthew,

I tested the behavior of the Chart with the latest version of KendoReact and both of the listed events are properly triggered at my end on left click. You can see my test page below, are you facing the same issue with it?

If no, can you update it up to a point where the problem occurs and send it back to me so I can examine it further?

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Matthew
Top achievements
Rank 1
commented on 22 Jan 2025, 07:19 PM

Well this is a bit embarrassing, our project is still using version 7. Upgrading to the latest resolves the issue. Thank you for your time.
Vessy
Telerik team
commented on 24 Jan 2025, 10:19 AM

No, worries, Matthew, thanks a lot for the update :) I am glad the upgrading helped to resolve the issue.
Tags
Charts
Asked by
Matthew
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or