diff --git a/paginator.js b/paginator.js index 7980c20..f8130c7 100644 --- a/paginator.js +++ b/paginator.js @@ -360,6 +360,7 @@ class View { } } expand() { + if (!this.document) return; const { documentElement } = this.document if (this.#column) { const side = this.#vertical ? 'height' : 'width'