diff --git a/frontend/src/email-handler.html b/frontend/src/email-handler.html index 160ad19080de..f0753f098988 100644 --- a/frontend/src/email-handler.html +++ b/frontend/src/email-handler.html @@ -167,7 +167,6 @@ diff --git a/frontend/src/ts/pages/profile-search.ts b/frontend/src/ts/pages/profile-search.ts index e5ca472ef48c..e35d6b4c4041 100644 --- a/frontend/src/ts/pages/profile-search.ts +++ b/frontend/src/ts/pages/profile-search.ts @@ -57,7 +57,7 @@ export const page = new Page({ disableButton(); }, afterShow: async (): Promise => { - qs(".page.pageProfileSearch input")?.dispatch("focus"); + qs(".page.pageProfileSearch input")?.focus(); }, }); diff --git a/frontend/src/ts/utils/dom.ts b/frontend/src/ts/utils/dom.ts index 4e1088691bc4..d0525086bb93 100644 --- a/frontend/src/ts/utils/dom.ts +++ b/frontend/src/ts/utils/dom.ts @@ -212,11 +212,13 @@ export class ElementWithUtils { /** * Check if element is visible */ - isVisible(): boolean { return this.native.offsetWidth > 0 || this.native.offsetHeight > 0; } + /** + * Make element visible by scrolling the element's ancestor containers + */ scrollIntoView(options: ScrollIntoViewOptions): this { this.native.scrollIntoView(options);