bugfix
This commit is contained in:
parent
465406dbdd
commit
797686e3d3
@ -81,17 +81,19 @@ bricks.BaseModal = class extends bricks.Layout {
|
||||
this.dispatch('opened');
|
||||
}
|
||||
dismiss(){
|
||||
this.set_css('display', 'none');
|
||||
if (this.timeout_task){
|
||||
this.timeout_task.cancel();
|
||||
this.timeout_task = null;
|
||||
if (this.parent){
|
||||
this.set_css('display', 'none');
|
||||
if (this.timeout_task){
|
||||
this.timeout_task.cancel();
|
||||
this.timeout_task = null;
|
||||
}
|
||||
try {
|
||||
this.parent.remove_widget(this);
|
||||
} catch(e){
|
||||
console.log(e, 'remove modal error');
|
||||
}
|
||||
this.dispatch('dismissed');
|
||||
}
|
||||
try {
|
||||
this.parent.remove_widget(this);
|
||||
} catch(e){
|
||||
console.log(e, 'remove modal error');
|
||||
}
|
||||
this.dispatch('dismissed');
|
||||
}
|
||||
}
|
||||
bricks.Modal = class extends bricks.BaseModal {
|
||||
|
Loading…
Reference in New Issue
Block a user