@servlyadmin/runtime-core 0.1.19 → 0.1.20

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,18 +19569,6 @@ function attachEventHandlers(domElement, element, eventHandlers, context, elemen
19569
19569
  }
19570
19570
  }
19571
19571
  }
19572
- if (isRootElement && context.props) {
19573
- for (const [propName, value] of Object.entries(context.props)) {
19574
- if (propName.startsWith("on") && propName.length > 2 && typeof value === "function") {
19575
- const domEventName = propName.slice(2).toLowerCase();
19576
- if (!elementState.eventListeners.has(domEventName)) {
19577
- const handler = value;
19578
- elementState.eventListeners.set(domEventName, handler);
19579
- domElement.addEventListener(domEventName, handler);
19580
- }
19581
- }
19582
- }
19583
- }
19584
19572
  }
19585
19573
  function detachEventHandlers(elementState) {
19586
19574
  for (const [eventName, handler] of elementState.eventListeners) {
package/dist/index.js CHANGED
@@ -2773,18 +2773,6 @@ function attachEventHandlers(domElement, element, eventHandlers, context, elemen
2773
2773
  }
2774
2774
  }
2775
2775
  }
2776
- if (isRootElement && context.props) {
2777
- for (const [propName, value] of Object.entries(context.props)) {
2778
- if (propName.startsWith("on") && propName.length > 2 && typeof value === "function") {
2779
- const domEventName = propName.slice(2).toLowerCase();
2780
- if (!elementState.eventListeners.has(domEventName)) {
2781
- const handler = value;
2782
- elementState.eventListeners.set(domEventName, handler);
2783
- domElement.addEventListener(domEventName, handler);
2784
- }
2785
- }
2786
- }
2787
- }
2788
2776
  }
2789
2777
  function detachEventHandlers(elementState) {
2790
2778
  for (const [eventName, handler] of elementState.eventListeners) {
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.20",
4
4
  "description": "Framework-agnostic core renderer for Servly components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",