Skip to content

Commit dcad921

Browse files
Update elements/pf-search-input/pf-search-input.ts
Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
1 parent f2c6d5e commit dcad921

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

elements/pf-search-input/pf-search-input.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,8 @@ export class PfSearchInput extends LitElement {
330330
}
331331
}
332332

333-
#delay(ms: number): Promise<void> {
334-
return new Promise(resolve => setTimeout(resolve, ms));
335-
}
336-
337333
async #showListbox() {
338-
await this.#delay(10);
334+
await new Promise(requestAnimationFrame);
339335
if (!this.disabled) {
340336
this.expanded ||= true;
341337
}

0 commit comments

Comments
 (0)