pawajs 2.3.5 → 2.3.6

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.
@@ -73,7 +73,7 @@ function restorePawaStateFromContext(oldCtx, newCtx,stateContext,oldStateContext
73
73
  Object.prototype.hasOwnProperty.call(prevInitials, key) &&
74
74
  !sameInitial(prevInitials[key], freshInitials[key])
75
75
 
76
- if (typeof newVal.value === typeof oldVal.value ) {
76
+ if (isPawaState(newVal) && isPawaState(oldVal) && typeof newVal.value === typeof oldVal.value ) {
77
77
  newVal.value = oldVal.value
78
78
  }
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "type":"module",
5
5
  "description": "pawajs library (reactive web runtime) for easily building web ui, enhancing html element, micro frontend, spa etc ",
6
6
  "main": "index.js",