From c4ebc85f3cf80bf77a9e9eb87236b9c650d4f991 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 28 Feb 2022 15:00:45 +0000 Subject: [PATCH] Fix soft bricking app when closing nested modals using escape key --- packages/bbui/src/Modal/Modal.svelte | 57 ++++++++++++++++------------ 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/packages/bbui/src/Modal/Modal.svelte b/packages/bbui/src/Modal/Modal.svelte index f805dec0ad..706ee56bb2 100644 --- a/packages/bbui/src/Modal/Modal.svelte +++ b/packages/bbui/src/Modal/Modal.svelte @@ -54,34 +54,43 @@ - - -{#if visible && inline} -
- -
-{:else if visible} +{#if inline} + {#if visible} +
+ +
+ {/if} +{:else} + -
-