@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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.104.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.104.1...@next-core/brick-kit@2.104.2) (2022-02-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix state.onChange ([cfdfbf8](https://github.com/easyops-cn/next-core/commit/cfdfbf80574cbaa38168b42b5c0899a71f28be12))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.104.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.104.0...@next-core/brick-kit@2.104.1) (2022-02-14)
7
18
 
8
19
 
@@ -2093,7 +2093,7 @@
2093
2093
 
2094
2094
  if (contextConf.onChange) {
2095
2095
  for (var handler of [].concat(contextConf.onChange)) {
2096
- newContext.eventTarget.addEventListener("context.change", listenerFactory(handler, coreContext, brick));
2096
+ newContext.eventTarget.addEventListener(storyboardContextWrapper.isTemplateState ? "state.change" : "context.change", listenerFactory(handler, coreContext, brick));
2097
2097
  }
2098
2098
  }
2099
2099