Explorar o código

adds an informative message for an ocurring bug

Matheus Giovani %!s(int64=2) %!d(string=hai) anos
pai
achega
c076c85b6c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/renderer/src/core/vdom/directives/EventHandler.ts

+ 1 - 0
packages/renderer/src/core/vdom/directives/EventHandler.ts

@@ -17,6 +17,7 @@ directive("on", async (node, { value, expression, scope }) => {
 
         debug("will handle event \"%s\" to %O", value, evaluate);
 
+        // @todo check why events are duplicating for the FIRST element inside the for-loop
         node.addEventListener(value, async ($event: any) => {
             debug("handled %s event", value);