From d9830950aacc3343d708eccd1a2a33c585e797de Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Fri, 10 Nov 2017 12:43:50 +0100 Subject: [PATCH] fix modal handling --- website/client/app.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/client/app.vue b/website/client/app.vue index 2f348969b4..16e2ce31c0 100644 --- a/website/client/app.vue +++ b/website/client/app.vue @@ -292,7 +292,9 @@ export default { // @TODO: This part is hacky and could be solved with two options: // 1 - Find a way to pass fromRoot to hidden // 2 - Enforce that all modals use the hide::modal event - this.$root.$on('bv::hide::modal', (modalId) => { + this.$root.$on('bv::modal::hidden', (bvEvent) => { + const modalId = bvEvent.target.id; + let modalStackLength = this.$store.state.modalStack.length; let modalOnTop = this.$store.state.modalStack[modalStackLength - 1]; let modalSecondToTop = this.$store.state.modalStack[modalStackLength - 2];