draggable-points icon indicating copy to clipboard operation
draggable-points copied to clipboard

Error when draggable point is clicked

Open ghost opened this issue 9 years ago • 3 comments

When the user clicks on a point that has been defined as draggable, the following error is produced: draggable-points.js:96 Uncaught TypeError: Cannot set property 'dragStart' of undefined

ghost avatar Jun 13 '16 18:06 ghost

Demo for the issue: http://jsfiddle.net/highcharts/AyUbx/ (official one). Issue comes from this line. I think there should be else case to return an empty point, or simply define newPos = {} here.

pawelfus avatar Jun 14 '16 08:06 pawelfus

Here's a patch that solves the issue by checking for the state of the point inside the event handlers (I had to zip it as github apparently doesn't support .patch extension). diff.zip

ghost avatar Jun 14 '16 19:06 ghost

I think this should have been fixed by PR #54 (merged)

meng-du avatar Jun 17 '16 22:06 meng-du