This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
Error on endTour(true) -- TypeError: Cannot read property 'removeChild' of null #296
Labels
Milestone
I'm using v0.2.5, haven't checked 0.2.6 but the offending line of code looks the same.
https://github.com/linkedin/hopscotch/blob/dc747f0e7fc8009227810ed623e3d31e418cda9b/src/js/hopscotch.js#L979-L986
I haven't figured out the exact cause, but I'm running into a case where I call endTour(true) before I've actually run a tour yet, and I get a console error/exception because parentNode is null.
I don't know enough of the plumbing without digging to figure out why. Maybe you can guess how that element might be detached somehow?
the element is the bubble
Or perhaps you can do
if (el && el.parentNode)
The text was updated successfully, but these errors were encountered: