@next-core/brick-kit 2.104.1 → 2.104.2

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
@@ -2094,7 +2094,7 @@ function resolveFreeVariableValue(value, contextConf, coreContext, storyboardCon
2094
2094
 
2095
2095
  if (contextConf.onChange) {
2096
2096
  for (var handler of [].concat(contextConf.onChange)) {
2097
- newContext.eventTarget.addEventListener("context.change", listenerFactory(handler, coreContext, brick));
2097
+ newContext.eventTarget.addEventListener(storyboardContextWrapper.isTemplateState ? "state.change" : "context.change", listenerFactory(handler, coreContext, brick));
2098
2098
  }
2099
2099
  }
2100
2100