{#if $$slots.output && selectedOption}
{
if (interactiveOutput) hasFocus = !hasFocus;
}}>
{:else}
(hasFocus = true)}
on:click={() => (hasFocus = true)}
on:invalid={handleInvalid}
on:input={handleInput}
on:keydown={handleKeydown} />
{/if}
{#if showClearBtn}
{/if}