Skip to content

Commit

Permalink
fix: #506 modal closing when the mouse ends outside it after selectin…
Browse files Browse the repository at this point in the history
…g text in Chrome
  • Loading branch information
josdejong committed Dec 4, 2024
1 parent 4d9ef7f commit bbb7d83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/modals/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events a11y-no-noninteractive-element-interactions -->
<dialog
bind:this={dialog}
on:close={close}
on:click|self={close}
on:pointerdown|self={close}
on:cancel|preventDefault
use:onEscape={close}
class={classnames('jse-modal', className)}
Expand Down

0 comments on commit bbb7d83

Please sign in to comment.