mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 18:39:39 +08:00
Revert "Fix opening modals from other modals. (#2263)"
This reverts commit 5b157f0adb576ea0cea4b85ec756feddf07b7ba3.
This commit is contained in:
parent
ed23d7d4e7
commit
7fc0963e3c
@ -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…
x
Reference in New Issue
Block a user