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;