diff --git a/core/util/cursor.js b/core/util/cursor.js index 009bd6de..4db1dab2 100644 --- a/core/util/cursor.js +++ b/core/util/cursor.js @@ -179,6 +179,10 @@ export default class Cursor { // should be visible. if (this._captureIsActive()) { window.setTimeout(() => { + // We might have detached at this point + if (!this._target) { + return; + } // Refresh the target from elementFromPoint since queued events // might have altered the DOM target = document.elementFromPoint(event.clientX,