Skip to content

Commit 4b9e52d

Browse files
committed
bugfix: 修复事件 event 数据丢失问题
1 parent 0f47226 commit 4b9e52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mip/src/util/event-action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class EventAction {
9696
}) : {}
9797

9898
let fn = new Function('DOM', `with(this){return ${action.arg}}`) // eslint-disable-line
99-
let data = fn.call(proxy)
99+
let data = fn.call(Object.assign(proxy, action))
100100

101101
if (action.handler === 'setData') {
102102
MIP.setData(data)

0 commit comments

Comments
 (0)