{ if (isOpen && !ref.contains(target) && !refPanel.contains(target)) { isOpen = false; dispatch('close'); } }} />
{#if isOpen}
{/if}