Make modals only close on a mousedown outside the modal rather than a click

This commit is contained in:
Andrew Kingston 2021-04-16 13:09:16 +01:00
parent ff9824011a
commit 3354aeff54
1 changed files with 3 additions and 3 deletions

View File

@ -48,9 +48,9 @@
<div
class="spectrum-Underlay is-open"
transition:fade={{ duration: 200 }}
on:click|self={hide}>
<div class="modal-wrapper" on:click|self={hide}>
<div class="modal-inner-wrapper" on:click|self={hide}>
on:mousedown|self={hide}>
<div class="modal-wrapper" on:mousedown|self={hide}>
<div class="modal-inner-wrapper" on:mousedown|self={hide}>
<div
use:focusFirstInput
class="spectrum-Modal is-open"