diff --git a/config/current.ver b/config/current.ver index 7664e79..b38ee02 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.57 \ No newline at end of file +1.2.58 \ No newline at end of file diff --git a/public/assets/js/bridge/blocks-api.js b/public/assets/js/bridge/blocks-api.js index d70c53d..148518f 100644 --- a/public/assets/js/bridge/blocks-api.js +++ b/public/assets/js/bridge/blocks-api.js @@ -500,6 +500,10 @@ const html = el.innerHTML || ''; const before = typeof comp.get === 'function' ? (comp.get('content') || '') : ''; if (html.trim() || !String(before || '').trim()) { + // Keep components tree in sync when possible (matches bridge-core behavior) + if (comp.components) { + try { comp.components(html); } catch {} + } comp.set('content', html); comp.trigger && comp.trigger('change:content'); syncResult = {