PayFlow: correct modal closure (Escape / click outside)
This commit is contained in:
parent
4cb14b6b7f
commit
a727f59503
@ -88,9 +88,14 @@
|
|||||||
}
|
}
|
||||||
const canShare = !!navigator.share;
|
const canShare = !!navigator.share;
|
||||||
|
|
||||||
|
const dismiss = () => {
|
||||||
|
lnurl=undefined;
|
||||||
|
isOpen=false
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal {isOpen} size='lg'>
|
<Modal {isOpen} toggle={dismiss} size='lg'>
|
||||||
<ModalHeader>BOLT11 invoice: {stage}</ModalHeader>
|
<ModalHeader>BOLT11 invoice: {stage}</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
{#if confirmAmount}
|
{#if confirmAmount}
|
||||||
@ -163,8 +168,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<button
|
<button
|
||||||
class="btn btn-outline-primary"
|
class="btn btn-outline-primary"
|
||||||
type="button" on:click="{()=>{isOpen=false; lnurl = null}}">Cancel</button>
|
type="button" on:click="{dismiss}">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Loading…
Reference in New Issue
Block a user