This commit is contained in:
yumoqing 2024-02-21 13:14:51 +08:00
parent 5a64f767ad
commit 035826a6d2

View File

@ -296,6 +296,8 @@ bricks.buildDispatchEventHandler = function(w, target, rtdata, desc){
} }
bricks.getWidgetById = function(id, from_widget){ bricks.getWidgetById = function(id, from_widget){
if (!from_widget){
from_widget = bricks.Body;
if (! id){ if (! id){
return from_widget; return from_widget;
} }