Revert to use manual handlers for closing rather than clickOutside action
This commit is contained in:
parent
14cf5c0669
commit
3c8b6fa5c6
|
@ -46,11 +46,13 @@
|
||||||
|
|
||||||
{#if visible}
|
{#if visible}
|
||||||
<Portal target=".modal-container">
|
<Portal target=".modal-container">
|
||||||
<div class="spectrum-Underlay is-open" transition:fade={{ duration: 200 }}>
|
<div
|
||||||
<div class="modal-wrapper">
|
class="spectrum-Underlay is-open"
|
||||||
<div class="modal-inner-wrapper">
|
transition:fade={{ duration: 200 }}
|
||||||
|
on:mousedown|self={hide}>
|
||||||
|
<div class="modal-wrapper" on:mousedown|self={hide}>
|
||||||
|
<div class="modal-inner-wrapper" on:mousedown|self={hide}>
|
||||||
<div
|
<div
|
||||||
use:clickOutside={hide}
|
|
||||||
use:focusFirstInput
|
use:focusFirstInput
|
||||||
class="spectrum-Modal is-open"
|
class="spectrum-Modal is-open"
|
||||||
transition:fly={{ y: 30, duration: 200 }}>
|
transition:fly={{ y: 30, duration: 200 }}>
|
||||||
|
|
Loading…
Reference in New Issue