From 8f6681ad7ac4a8d891fb4b5ec42c6d731fd85cb0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 7 Jul 2019 14:51:08 -0700 Subject: [PATCH] fix: clicking outside image closes modal (#1312) fixes #862 --- .../dialog/components/MediaDialog.html | 87 ++++++++++++++++--- .../components/MediaFocalPointDialog.html | 8 +- .../dialog/components/ModalDialog.html | 12 ++- 3 files changed, 91 insertions(+), 16 deletions(-) diff --git a/src/routes/_components/dialog/components/MediaDialog.html b/src/routes/_components/dialog/components/MediaDialog.html index e403b3f0..d7d03adc 100644 --- a/src/routes/_components/dialog/components/MediaDialog.html +++ b/src/routes/_components/dialog/components/MediaDialog.html @@ -3,15 +3,16 @@ {label} background="var(--muted-modal-bg)" muted="true" + clickHeaderToClose={true} className="media-modal-dialog" on:show="onShow()" >
-