From 3c0fd2fe0e63f0f96dabdbb2ce8ebbd6192e69f7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 18 Dec 2025 10:48:46 +0800 Subject: [PATCH] bugfix --- bricks/bricks.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/bricks/bricks.js b/bricks/bricks.js index ec50f26..2b8e9ce 100644 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -335,23 +335,10 @@ var _buildWidget = async function(from_widget, target, mode, options, desc){ return; } if (w instanceof bricks.Popup) { - return - } - if (w.parent) { - if (target instanceof bricks.Popup || target instanceof bricks.PopupWindow){ - target.destroy(); - } return; } - if (target instanceof bricks.Popup || target instanceof bricks.PopupWindow) { - if (! target.parent){ - bricks.app.add_widget(target); - } - if (desc.popup_options){ - if (desc.popup_options.eventpos){ - target.bind('opened', bricks.relocate_by_eventpos.bind(null, desc.event, target)); - } - } + if (w instanceof bricks.NewWindow) { + return; } if (mode == 'replace'){ target.clear_widgets();