{ if (open) { if (key === 'Escape') { open = false; } else if (shouldSubmitOnEnter && key === 'Enter') { dispatch('submit'); } } }} on:click on:click={({ target }) => { if (!innerModal.contains(target)) { open = false; } }} on:mouseover on:mouseenter on:mouseleave {id} {style}>
{#if passiveModal} {/if} {#if modalLabel}

{modalLabel}

{/if}

{modalHeading}

{#if !passiveModal} {/if}
{#if hasScrollingContent}
{/if} {#if !passiveModal}
{/if}