From 035826a6d21181c2bd606bd9ba6ecff5e12e071d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Feb 2024 13:14:51 +0800 Subject: [PATCH] bugfix --- bricks/bricks.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bricks/bricks.js b/bricks/bricks.js index 212c666..af4f4b3 100755 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -296,6 +296,8 @@ bricks.buildDispatchEventHandler = function(w, target, rtdata, desc){ } bricks.getWidgetById = function(id, from_widget){ + if (!from_widget){ + from_widget = bricks.Body; if (! id){ return from_widget; }