From 691648791b05e9e2f260cd72da49b456f588f4c0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 24 Oct 2024 11:33:47 +0800 Subject: [PATCH] bugfix --- bricks/accordion.js | 1 + bricks/bricks.js | 1 + 2 files changed, 2 insertions(+) diff --git a/bricks/accordion.js b/bricks/accordion.js index c54e138..0b95307 100644 --- a/bricks/accordion.js +++ b/bricks/accordion.js @@ -48,6 +48,7 @@ bricks.Accordion = class extends bricks.VBox { var refresh = false; var b = event.target.bricks_widget; var name = b.opts.name; + this.select_item(b); bricks.debug('accordion: button=', b, 'name=', name); var pos = -1; for (var i=0; i< this.opts.items.length; i++){ diff --git a/bricks/bricks.js b/bricks/bricks.js index 4e45165..a74a717 100755 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -460,6 +460,7 @@ bricks.App = class extends bricks.Layout { */ super(opts); bricks.app = this; + bricks.bug = opts.debug or false; bricks.Body = this; this.deviceid = bricks.deviceid(opts.appname || 'appname'); this.login_url = opts.login_url;