mirror of
https://github.com/flarum/core.git
synced 2025-08-10 10:24:46 +02:00
Revert fix for opening modal from modal. Will be split to separate PR.
This commit is contained in:
committed by
Franz Liedke
parent
b8abd2522e
commit
9e6cfcf05a
@@ -27,6 +27,10 @@ export default class Modal extends Component {
|
|||||||
this.attrs.onshow(() => this.onready());
|
this.attrs.onshow(() => this.onready());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onremove() {
|
||||||
|
this.props.onhide();
|
||||||
|
}
|
||||||
|
|
||||||
view() {
|
view() {
|
||||||
if (this.alertAttrs) {
|
if (this.alertAttrs) {
|
||||||
this.alertAttrs.dismissible = false;
|
this.alertAttrs.dismissible = false;
|
||||||
|
@@ -16,12 +16,6 @@ export default class ModalManager extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onupdate() {
|
|
||||||
if (this.$('Modal') && !this.attrs.state.modal) {
|
|
||||||
this.animateHide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
oncreate(vnode) {
|
oncreate(vnode) {
|
||||||
super.oncreate(vnode);
|
super.oncreate(vnode);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user