bugfix
This commit is contained in:
parent
465406dbdd
commit
797686e3d3
@ -81,6 +81,7 @@ bricks.BaseModal = class extends bricks.Layout {
|
|||||||
this.dispatch('opened');
|
this.dispatch('opened');
|
||||||
}
|
}
|
||||||
dismiss(){
|
dismiss(){
|
||||||
|
if (this.parent){
|
||||||
this.set_css('display', 'none');
|
this.set_css('display', 'none');
|
||||||
if (this.timeout_task){
|
if (this.timeout_task){
|
||||||
this.timeout_task.cancel();
|
this.timeout_task.cancel();
|
||||||
@ -94,6 +95,7 @@ bricks.BaseModal = class extends bricks.Layout {
|
|||||||
this.dispatch('dismissed');
|
this.dispatch('dismissed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
bricks.Modal = class extends bricks.BaseModal {
|
bricks.Modal = class extends bricks.BaseModal {
|
||||||
constructor(options){
|
constructor(options){
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user