소스 검색

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

Stanislav Lashmanov 6 년 전
부모
커밋
6d5c12b63a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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(