Explorar o código

fix(runtime-dom/events): fix wrong scope for event value (#117)

Stanislav Lashmanov %!s(int64=6) %!d(string=hai) anos
pai
achega
6d5c12b63a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/runtime-dom/src/modules/events.ts

+ 1 - 0
packages/runtime-dom/src/modules/events.ts

@@ -72,6 +72,7 @@ function createInvoker(value: any, instance: ComponentInternalInstance | null) {
     // AFTER it was attached.
     if (e.timeStamp >= invoker.lastUpdated) {
       const args = [e]
+      const value = invoker.value
       if (isArray(value)) {
         for (let i = 0; i < value.length; i++) {
           callWithAsyncErrorHandling(