From c21845a5795561dd7bb12bb70e3a67b2be51d2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=BB=A8=ED=8A=B8=EB=A1=A4DELTA?= Date: Mon, 20 Apr 2026 12:03:48 +0900 Subject: [PATCH] Remove Frame Delay from Focus Move Code --- src/app/components/dropdown/dropdown.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index b420134..9319c6d 100644 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -165,12 +165,12 @@ export class Dropdown implements OnInit { this.searchQuery.set(''); this.focusedIndex.set(this.normalizedOptions().findIndex((o) => o.value === this.value())); - requestAnimationFrame(() => { + setTimeout(() => { const searchInputElement = this.searchInput()!.nativeElement; searchInputElement.focus(); this.setCursorToEnd(searchInputElement); - }); + }, 0); } }