mirror of
https://github.com/flarum/core.git
synced 2025-05-30 02:59:46 +02: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());
|
this.attrs.onshow(() => this.onready());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onremove() {
|
||||||
|
this.attrs.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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user