{#if gradio.shared.show_label && buttons && buttons.length > 0} {/if} {label}
{#each selected_indices as s}
{#if typeof s === "number"} {choices_names[s]} {:else} {s} {/if} {#if !disabled}
remove_selected_choice(s)} on:keydown={(event) => { if (event.key === "Enter") { remove_selected_choice(s); } }} role="button" tabindex="0" title={gradio.i18n("common.remove") + " " + s} >
{/if}
{/each}
{ gradio.dispatch("key_up", { key: e.key, input_value: input_text }); }} on:blur={handle_blur} on:focus={handle_focus} readonly={!gradio.props.filterable} /> {#if !disabled} {#if selected_indices.length > 0}
{ if (event.key === "Enter") { remove_all(event); } }} >
{/if} {/if}