From 42b063d21bf6d7a14cf21f800cd364c8cd7c0271 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} + -
-