From a727f59503f9c2fa5837868350db67a7e6298f44 Mon Sep 17 00:00:00 2001 From: Anton Kovalenko Date: Sat, 17 Jul 2021 22:55:39 +0300 Subject: [PATCH] PayFlow: correct modal closure (Escape / click outside) --- src/PayFlow.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/PayFlow.svelte b/src/PayFlow.svelte index 023b727..c6e2048 100644 --- a/src/PayFlow.svelte +++ b/src/PayFlow.svelte @@ -88,9 +88,14 @@ } const canShare = !!navigator.share; + const dismiss = () => { + lnurl=undefined; + isOpen=false + } + - + BOLT11 invoice: {stage} {#if confirmAmount} @@ -163,8 +168,7 @@ {/if} + type="button" on:click="{dismiss}">Cancel -