Skip to content

Commit

Permalink
fix(core): fixed touchstart missing currentTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Nov 14, 2018
1 parent 541e2f5 commit 3680d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/weapp/init/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const eventHandler = function (method, fn) {
const proxyHandler = function (e) {
let vm = this.$wepy;
let type = e.type;
let dataset = e.currentTarget.dataset;
// touchstart do not have currentTarget
let dataset = (e.currentTarget || e.target).dataset;
let evtid = dataset.wpyEvt;
let modelId = dataset.modelId;
let rel = vm.$rel || {};
Expand Down

0 comments on commit 3680d09

Please sign in to comment.