Browse Source

revert: click outside model behaviour

Timothy J. Baek 1 year ago
parent
commit
42925025b7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/components/common/Modal.svelte

+ 3 - 0
src/lib/components/common/Modal.svelte

@@ -36,6 +36,9 @@
 	<div
 		class=" fixed top-0 right-0 left-0 bottom-0 bg-black/60 w-full min-h-screen h-screen flex justify-center z-50 overflow-hidden overscroll-contain"
 		in:fade={{ duration: 10 }}
+		on:click={() => {
+			show = false;
+		}}
 	>
 		<div
 			class=" modal-content m-auto rounded-xl max-w-full {sizeToWidth(