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:
committed by
GitHub
parent
ceb567779e
commit
d4e3254395
@@ -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.
|
||||
|
Reference in New Issue
Block a user