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); } }