From cf4d7ab1fd890ae7f6381d9dfb089c6f7461d285 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Thu, 18 Dec 2025 21:49:20 +0200 Subject: [PATCH] Use native type --- frontend/src/ts/utils/dom.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/ts/utils/dom.ts b/frontend/src/ts/utils/dom.ts index db9ebfedc..b46e9e569 100644 --- a/frontend/src/ts/utils/dom.ts +++ b/frontend/src/ts/utils/dom.ts @@ -105,13 +105,6 @@ type ElementWithValue = | HTMLTextAreaElement | HTMLSelectElement; -type scrollIntoViewOptions = { - behavior?: "smooth" | "instant" | "auto"; - block?: "start" | "center" | "end" | "nearest"; - container?: "all" | "nearest"; - inline?: "start" | "center" | "end" | "nearest"; -}; - export class ElementWithUtils { /** * The native dom element @@ -209,7 +202,7 @@ export class ElementWithUtils { return this.native.offsetWidth > 0 || this.native.offsetHeight > 0; } - scrollIntoView(options: scrollIntoViewOptions): this { + scrollIntoView(options: ScrollIntoViewOptions): this { this.native.scrollIntoView(options); return this;