(open = true)} use:clickOutside={{ onClickOutside: () => (open = false) }} {id} > {#if currentValue.length === 0} {placeholder} {:else} {/if} {#if allowClear && !hideMainClearBtn && !!value?.length} (clearValue(), e.stopPropagation())} /> {/if} !currentValue.includes(item.value))} value={undefined} {disabled} {filterText} getInputRect={wrapperEl && (() => wrapperEl!.getBoundingClientRect())} {listAutoWidth} {noItemsMsg} class={twMerge( 'multiselect dropdown', open && !disabled ? 'open' : '', disabled ? 'disabled' : '' )} ulClass="options" > {#snippet header()} {#if processedItems.length - currentValue.length > 0 || onCreateItem}
(e.preventDefault(), searchInputEl?.focus()), placeholder: searchPlaceholder }} class="!pr-7 !bg-surface" />
{/if} {/snippet}