I have the popup modal in one of my app.I would like to close this popup while clicking outside of modal.I can achieve this behaviour using javascript but i can't quite find a way to make this work using svelte framework.for now i'm achieving that behaviour like this

```
if(e.target.classList.contains('my-modal')){
     e.target.style.display="none";
 }

```

but i would like to have this worked using svelte.