1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Fix modal backdrop not closing on app.modal.close()

This commit is contained in:
Alexander Skvortsov
2020-08-13 12:17:56 -04:00
committed by Franz Liedke
parent 6b178b8204
commit 169b0fbd9b

View File

@@ -16,6 +16,12 @@ export default class ModalManager extends Component {
);
}
onupdate(vnode) {
if (this.$('Modal') && !this.attrs.state.modal) {
this.animateHide();
}
}
oncreate(vnode) {
super.oncreate(vnode);