@servlyadmin/runtime-core 0.1.19 → 0.1.21

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.cjs CHANGED
@@ -19569,7 +19569,7 @@ function attachEventHandlers(domElement, element, eventHandlers, context, elemen
19569
19569
  }
19570
19570
  }
19571
19571
  }
19572
- if (isRootElement && context.props) {
19572
+ if (isRootElement && context.props && state?.renderingStack?.size === 0) {
19573
19573
  for (const [propName, value] of Object.entries(context.props)) {
19574
19574
  if (propName.startsWith("on") && propName.length > 2 && typeof value === "function") {
19575
19575
  const domEventName = propName.slice(2).toLowerCase();
package/dist/index.js CHANGED
@@ -2773,7 +2773,7 @@ function attachEventHandlers(domElement, element, eventHandlers, context, elemen
2773
2773
  }
2774
2774
  }
2775
2775
  }
2776
- if (isRootElement && context.props) {
2776
+ if (isRootElement && context.props && state?.renderingStack?.size === 0) {
2777
2777
  for (const [propName, value] of Object.entries(context.props)) {
2778
2778
  if (propName.startsWith("on") && propName.length > 2 && typeof value === "function") {
2779
2779
  const domEventName = propName.slice(2).toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servlyadmin/runtime-core",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Framework-agnostic core renderer for Servly components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",