From 3cc540d3b7bbcef978f7424adc9fe5b2e8e17b11 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 19 Mar 2024 16:39:22 +0800 Subject: [PATCH] bugfix --- bricks/floaticonbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/floaticonbar.js b/bricks/floaticonbar.js index a1d9c42..fbc0cdb 100644 --- a/bricks/floaticonbar.js +++ b/bricks/floaticonbar.js @@ -27,7 +27,7 @@ bricks.IconBar = class extends bricks.HBox { w.set_style('margin-left', this.opts.margin || '10px'); w.set_style('margin-right', this.opts.margin || '10px'); if (tools[i].name){ - w.widget_id = tools[i].name; + w.set_id(tools[i].name); } w.set_style('cursor', 'pointer'); this.add_widget(w);