@tarojs/runtime 3.4.0-beta.0 → 3.5.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2593,11 +2593,12 @@ function createEvent(event, node) {
2593
2593
  const eventsBatch = {};
2594
2594
  // 小程序的事件代理回调函数
2595
2595
  function eventHandler(event) {
2596
- var _a;
2596
+ var _a, _b, _c;
2597
2597
  const hooks = getHooks();
2598
2598
  (_a = hooks.modifyMpEvent) === null || _a === void 0 ? void 0 : _a.call(hooks, event);
2599
2599
  event.currentTarget || (event.currentTarget = event.target);
2600
- const node = getDocument().getElementById(event.currentTarget.id);
2600
+ const nid = ((_b = event.currentTarget) === null || _b === void 0 ? void 0 : _b.id) || ((_c = event.detail) === null || _c === void 0 ? void 0 : _c.id) || '';
2601
+ const node = getDocument().getElementById(nid);
2601
2602
  if (node) {
2602
2603
  const dispatch = () => {
2603
2604
  var _a;