diff --git a/src/plugins/regions.ts b/src/plugins/regions.ts index f19a8c97f..5daa1e063 100644 --- a/src/plugins/regions.ts +++ b/src/plugins/regions.ts @@ -219,7 +219,7 @@ class SingleRegion extends EventEmitter { } private toggleCursor(toggle: boolean) { - if (!this.drag) return + if (!this.drag || !this.element?.style) return this.element.style.cursor = toggle ? 'grabbing' : 'grab' }