{#snippet child({ props })} {/snippet} {#if !disableSearch} { filterItems(e.currentTarget.value); oninput?.(e); }} /> {/if} {#if isLoading}
{:else} {m.no_items_found()} {/if}
{#each filteredItems as item} { value = item.value; onSelect?.(item.value); // If you need to focus the trigger, you may need to refactor to get the trigger id another way closeAndFocusTrigger('popover-trigger'); }} > {item.label} {/each}