{ btn.focus() if (!opened) { opened = true showPopup(DropdownPopup, { title: label, caption: 'suggested', items }, container, (result) => { if (result) selected = result opened = false }) } }} >
container.click()}> {#if selected} {selected.label} {:else} {#if typeof (icon) === 'string'} {:else} {/if} {/if}
{#if selected}{selected.label}{:else}