Revert "Fix opening modals from other modals. (#2263)"

This reverts commit 1d7002a63f.
This commit is contained in:
Alexander Skvortsov 2020-09-25 12:45:46 -04:00
parent 36faf92864
commit b4f563c38f
2 changed files with 4 additions and 6 deletions

View File

@ -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;

View File

@ -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);