🐛 Fix UpdatedPanel not closing (#2563)

This commit is contained in:
Oliver Trajceski 2021-12-19 12:50:02 +01:00 committed by GitHub
parent 6a2d970ea8
commit 11c49b9327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
:direction="direction" :direction="direction"
:visible="visible" :visible="visible"
:size="width" :size="width"
:before-close="beforeClose" :before-close="close"
:modal="modal" :modal="modal"
:wrapperClosable="wrapperClosable" :wrapperClosable="wrapperClosable"
> >
@ -81,6 +81,10 @@ export default Vue.extend({
} }
}, },
close() { close() {
if (this.beforeClose) {
this.beforeClose();
return;
}
this.$store.commit('ui/closeTopModal'); this.$store.commit('ui/closeTopModal');
}, },
}, },