Browse Source

[dialog] add background click handler to dialog overlay

mightyplow 6 years ago
parent
commit
bfe12c687b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/dialog/Dialog.jsx

+ 1 - 1
src/dialog/Dialog.jsx

@@ -8,7 +8,7 @@ function Dialog ({}, children) {
         }
 
         return (
-            <Overlay>
+            <Overlay onBackgroundClick={actions.dialog.close}>
                 <button className={style.close} onclick={actions.dialog.close} />
 
                 <div className={style.content}>