Screenshots attached.
To recreate:
- Create a chart
- Add a CursorModifier – default options is fine
- Either directly remove the modifier using .remove(modifier), or clear all using .clear()
Expected behaviour:
– Should remove the cursor modifier
Actual behaviour with bug:
– Crashes the page
This appears to be an issue with CursorModifier only (out of the 5 or 6 that I’ve tried). Other modifiers work as expected.
Traced the issue to this.parentSurface being undefined in CursorModifier.js, so when onDetach() is called, it errors.
Thanks!
Joe
-
Hi Joe, noted, thanks for the steps to reproduce. Will add to the work queue. Thanks!
- You must login to post comments
Hi @Michael, I’ve come across a similar bug to this in version 1.2.1463 when detaching a RolloverModifier. You mentioned that it had an issue before – screenshot attached – is this related?
- Henrique Rodrigues answered 3 years ago
- You must login to post comments
Hi Joe,
Thank you for finding the bug. In fact “Cannot read property annotations of undefined at CursorModifier.onDetach” error occurred not only in CursorModifier but in RolloverModifier as well.
We have fixed it in version 1.2.1426.
Best regards,
Michael
- Michael Klishevich answered 3 years ago
-
Thanks again for the good work Michael. All fixed and working nicely!
- You must login to post comments
Please login first to submit.