@next-core/brick-kit 2.117.8 → 2.117.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -6260,15 +6260,12 @@ function customListenerFactory(handler, ifContainer, context, runtimeBrick) {
6260
6260
  } else if (handler.target) {
6261
6261
  targets.push(handler.target);
6262
6262
  } else if (handler.targetRef) {
6263
- var _tpl$$$getElementByRe;
6264
-
6265
6263
  var tpl = getTplContext(context.tplContextId).getBrick().element;
6264
+ targets.push(...[].concat(handler.targetRef).map(ref => {
6265
+ var _tpl$$$getElementByRe;
6266
6266
 
6267
- var _found = (_tpl$$$getElementByRe = tpl.$$getElementByRef) === null || _tpl$$$getElementByRe === void 0 ? void 0 : _tpl$$$getElementByRe.call(tpl, handler.targetRef);
6268
-
6269
- if (_found) {
6270
- targets.push(_found);
6271
- }
6267
+ return (_tpl$$$getElementByRe = tpl.$$getElementByRef) === null || _tpl$$$getElementByRe === void 0 ? void 0 : _tpl$$$getElementByRe.call(tpl, ref);
6268
+ }).filter(Boolean));
6272
6269
  }
6273
6270
 
6274
6271
  if (targets.length === 0) {
@@ -8090,7 +8087,7 @@ class Kernel {
8090
8087
  };
8091
8088
 
8092
8089
  if (previewRouteIndex === -1) {
8093
- routes.push(newPreviewRoute);
8090
+ routes.unshift(newPreviewRoute);
8094
8091
  } else {
8095
8092
  routes.splice(previewRouteIndex, 1, newPreviewRoute);
8096
8093
  }