Skip to content

Commit

Permalink
feat(MdDialog): add emit event when clicked outside of dialog (#1567)
Browse files Browse the repository at this point in the history
* comp(MdDialog): Add emit event when clicked outside of dialog

* Update Dialog.vue

* Update MdDialog.vue

* Update Dialog.vue
  • Loading branch information
jkosonen authored and marcosmoura committed Mar 7, 2018
1 parent b14aac3 commit b19f6f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/app/pages/Components/Dialog/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
name: 'md-closed',
description: 'Triggered when a dialog closes',
value: 'null'
},
{
name: 'md-clicked-outside',
description: 'Triggered when clicked outside',
value: 'null'
}
]
}
Expand Down
1 change: 1 addition & 0 deletions src/components/MdDialog/MdDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
if (this.mdClickOutsideToClose) {
this.closeDialog()
}
this.$emit('md-clicked-outside');
},
onEsc () {
if (this.mdCloseOnEsc) {
Expand Down

0 comments on commit b19f6f0

Please sign in to comment.