We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59dc31b commit 84ce729Copy full SHA for 84ce729
packages/autocomplete-js/src/render.ts
@@ -59,7 +59,9 @@ export function render<TItem extends BaseItem>(
59
return () => {};
60
}
61
62
- if (!panelRoot.contains(panel)) {
+ // We add the panel element to the DOM when it's not yet appended and that the
63
+ // items are fetched.
64
+ if (!panelRoot.contains(panel) && state.status !== 'loading') {
65
panelRoot.appendChild(panel);
66
67
0 commit comments