Remove Frame Delay from Focus Move Code

This commit is contained in:
copecone committed 2026-04-20 12:03:48 +09:00
1 parent 5de6d111f2
commit c21845a579
1 file changed
+2 -2
+2 -2
View File
@@ -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);
}
}