mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 18:33:40 +08:00
Revert "Fix opening modals from other modals. (#2263)"
This reverts commit 1d7002a63f
.
This commit is contained in:
parent
36faf92864
commit
b4f563c38f
|
@ -27,6 +27,10 @@ export default class Modal extends Component {
|
|||
this.attrs.onshow(() => this.onready());
|
||||
}
|
||||
|
||||
onremove() {
|
||||
this.attrs.onhide();
|
||||
}
|
||||
|
||||
view() {
|
||||
if (this.alertAttrs) {
|
||||
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) {
|
||||
super.oncreate(vnode);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user