1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +02:00

Use all Mithril lifecycle stubs (#2847)

This commit is contained in:
Alexander Skvortsov
2021-05-09 18:09:45 -04:00
committed by GitHub
parent ceb567779e
commit d4e3254395
17 changed files with 77 additions and 23 deletions

View File

@@ -27,7 +27,9 @@ export default class Modal extends Component {
this.attrs.animateShow(() => this.onready());
}
onbeforeremove() {
onbeforeremove(vnode) {
super.onbeforeremove(vnode);
// If the global modal state currently contains a modal,
// we've just opened up a new one, and accordingly,
// we don't need to show a hide animation.