From 296a4ae34199742ead19da80bafd6b78463f4bb4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 28 Oct 2024 15:41:00 +0800 Subject: [PATCH] bugfix --- bricks/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/popup.js b/bricks/popup.js index a60bc39..7d6742e 100644 --- a/bricks/popup.js +++ b/bricks/popup.js @@ -10,7 +10,7 @@ bricks.Popup = class extends bricks.VBox { auto_dismiss: */ constructor(opts){ - super(); + super(opts); this.auto_task = null; this.issub = false; this.set_css('popup'); @@ -18,7 +18,7 @@ bricks.Popup = class extends bricks.VBox { this.set_style('zIndex', zindex); } add_widget(w, index){ - super().add_widget(w, index); + super.add_widget(w, index); if (this.auto_open){ this.open(); }