{
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 hasScrollingContent}
{/if}
{#if !passiveModal}
{/if}