We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8090c4c commit e5f4253Copy full SHA for e5f4253
lib/components/modal.vue
@@ -188,6 +188,7 @@
188
if (this.is_visible) {
189
return;
190
}
191
+ this.$emit('show');
192
this.is_visible = true;
193
this.$root.$emit('shown::modal', this.id);
194
this.body.classList.add('modal-open');
@@ -216,7 +217,7 @@
216
217
218
// Emit events
219
this.$emit('change', false);
- this.$emit('hidden', e);
220
+ this.$emit('hide',e);
221
222
if (isOK === true) {
223
this.$emit('ok', e);
@@ -234,6 +235,7 @@
234
235
236
this.is_visible = false;
237
this.$root.$emit('hidden::modal', this.id);
238
+ this.$emit('hidden', e);
239
this.body.classList.remove('modal-open');
240
241
},
0 commit comments