Skip to content

Commit b19f6f0

Browse files
jkosonenmarcosmoura
authored andcommitted
feat(MdDialog): add emit event when clicked outside of dialog (#1567)
* comp(MdDialog): Add emit event when clicked outside of dialog * Update Dialog.vue * Update MdDialog.vue * Update Dialog.vue
1 parent b14aac3 commit b19f6f0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/app/pages/Components/Dialog/Dialog.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@
122122
name: 'md-closed',
123123
description: 'Triggered when a dialog closes',
124124
value: 'null'
125+
},
126+
{
127+
name: 'md-clicked-outside',
128+
description: 'Triggered when clicked outside',
129+
value: 'null'
125130
}
126131
]
127132
}

src/components/MdDialog/MdDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
if (this.mdClickOutsideToClose) {
8080
this.closeDialog()
8181
}
82+
this.$emit('md-clicked-outside');
8283
},
8384
onEsc () {
8485
if (this.mdCloseOnEsc) {

0 commit comments

Comments
 (0)