bugfix
This commit is contained in:
parent
76c3554a61
commit
7489da5bd6
@ -16,6 +16,14 @@ bricks.Popup = class extends bricks.VBox {
|
||||
this.set_css('popup');
|
||||
const zindex = bricks.app.new_zindex();
|
||||
this.set_style('zIndex', zindex);
|
||||
if (this.auto_dismiss){
|
||||
bricks.Body.bind('click', this.click_outside.bind(this));
|
||||
}
|
||||
}
|
||||
click_outside(event){
|
||||
if (event.target != this.dom_element){
|
||||
this.dismiss();
|
||||
}
|
||||
}
|
||||
add_widget(w, index){
|
||||
super.add_widget(w, index);
|
||||
|
Loading…
Reference in New Issue
Block a user