diff --git a/src/Panel.vue b/src/Panel.vue index 29e4e39f4..4d3024a4e 100644 --- a/src/Panel.vue +++ b/src/Panel.vue @@ -42,6 +42,13 @@ export default { methods: { toggle () { this.open = !this.open + + if (this.open) { + this.$emit('PanelOpened', this); + } else { + this.$emit('PanelClosed', this); + } + if (this.inAccordion) { this.$parent.openChild(this) }