diff --git a/src/Umbraco.Web.UI.Client/libs/sorter/sorter.controller.ts b/src/Umbraco.Web.UI.Client/libs/sorter/sorter.controller.ts index c541ddb01e..2bafd25926 100644 --- a/src/Umbraco.Web.UI.Client/libs/sorter/sorter.controller.ts +++ b/src/Umbraco.Web.UI.Client/libs/sorter/sorter.controller.ts @@ -650,7 +650,7 @@ export class UmbSorterController implements UmbControllerInterface { private autoScrollY = 0; private handleAutoScroll(clientX: number, clientY: number) { - let scrollRect: DOMRect = null; + let scrollRect: DOMRect | null = null; if (this.#scrollElement) { this.#autoScrollEl = this.#scrollElement; scrollRect = this.#autoScrollEl.getBoundingClientRect(); @@ -663,7 +663,7 @@ export class UmbSorterController implements UmbControllerInterface { right: window.innerWidth, height: window.innerHeight, width: window.innerWidth, - }; + } as DOMRect; } const scrollWidth = this.#autoScrollEl.scrollWidth;