diff --git a/README.md b/README.md
index a0dbf0b2..7ccf00b9 100644
--- a/README.md
+++ b/README.md
@@ -85,7 +85,8 @@ Property | Purpose
`target` | Element selector, element, or Ember View reference for that serves as the reference for modal position (default: `'body'`)
`close` | The action handler for the dialog's `close` action. This action triggers when the user clicks the modal overlay.
`renderInPlace` | A boolean, when true renders the modal without wormholing or tethering, useful for including a modal in a style guide
-`clickOutsideToClose` | Indicates whether clicking outside a modal without an overlay should close the modal. Useful if your modal isn't the focus of interaction, and you want hover effects to still work outside the modal.
+`clickOutsideToClose` | Indicates whether clicking outside a modal *without* an overlay should close the modal. Useful if your modal isn't the focus of interaction, and you want hover effects to still work outside the modal.
+`onClickOverlay` | An action to be called when the overlay is clicked. This action will be called instead of closing the modal when the overlay is clicked.
`attachment` | A string of the form 'vert-attachment horiz-attachment', e.g. `'middle left'` (see "Positioning" section below)
`targetAttachment` | A string of the form 'vert-attachment horiz-attachment', e.g. `'middle left'` (see "Positioning" section below)
`container-class` | CSS class name(s) to append to container divs. Set this from template.
diff --git a/addon/components/modal-dialog.js b/addon/components/modal-dialog.js
index cabc8f02..f142641f 100644
--- a/addon/components/modal-dialog.js
+++ b/addon/components/modal-dialog.js
@@ -83,6 +83,13 @@ export default Ember.Component.extend({
actions: {
close() {
this.sendAction('close');
+ },
+ clickedOverlay() {
+ if (this.get('onClickOverlay')) {
+ this.sendAction('onClickOverlay');
+ } else {
+ this.sendAction('close');
+ }
}
}
});
diff --git a/addon/templates/current/components/modal-dialog.hbs b/addon/templates/current/components/modal-dialog.hbs
index 204a67b5..8837d821 100644
--- a/addon/templates/current/components/modal-dialog.hbs
+++ b/addon/templates/current/components/modal-dialog.hbs
@@ -2,7 +2,7 @@