modal clear on close

This commit is contained in:
Yuri Kuznetsov
2024-02-14 11:17:14 +02:00
parent 0093bf9b79
commit 54de942e7f
+12 -3
View File
@@ -569,15 +569,14 @@ class ModalView extends View {
*/
actionCancel() {
this.trigger('cancel');
this.dialog.close();
this.close();
}
/**
* A `close` action.
*/
actionClose() {
this.trigger('cancel');
this.dialog.close();
this.actionCancel();
}
/**
@@ -585,6 +584,16 @@ class ModalView extends View {
*/
close() {
this.dialog.close();
if (!this.getParentView()) {
return;
}
const key = this.getParentView().getViewKey(this);
if (key) {
this.getParentView().clearView(key);
}
}
/**