@tarojs/runtime 3.7.0-alpha.19 → 3.7.0-alpha.20

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.
@@ -1530,13 +1530,14 @@ class TaroEvent {
1530
1530
  this.defaultPrevented = true;
1531
1531
  }
1532
1532
  get target() {
1533
- var _a, _b, _c;
1533
+ var _a, _b, _c, _d;
1534
1534
  const cacheTarget = this.cacheTarget;
1535
1535
  if (!cacheTarget) {
1536
1536
  const target = Object.create(((_a = this.mpEvent) === null || _a === void 0 ? void 0 : _a.target) || null);
1537
- const element = env.document.getElementById(((_b = target.dataset) === null || _b === void 0 ? void 0 : _b.sid) || target.id || null);
1537
+ // Note:优先判断冒泡场景alipay的targetDataset的sid, 不然冒泡场景target属性吐出不对,其余拿取当前绑定id
1538
+ const element = env.document.getElementById(((_b = target.targetDataset) === null || _b === void 0 ? void 0 : _b.sid) || ((_c = target.dataset) === null || _c === void 0 ? void 0 : _c.sid) || target.id || null);
1538
1539
  target.dataset = element !== null ? element.dataset : shared.EMPTY_OBJ;
1539
- for (const key in (_c = this.mpEvent) === null || _c === void 0 ? void 0 : _c.detail) {
1540
+ for (const key in (_d = this.mpEvent) === null || _d === void 0 ? void 0 : _d.detail) {
1540
1541
  target[key] = this.mpEvent.detail[key];
1541
1542
  }
1542
1543
  this.cacheTarget = target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "3.7.0-alpha.19",
3
+ "version": "3.7.0-alpha.20",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main:h5": "dist/runtime.h5.js",
6
6
  "main": "dist/runtime.esm.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "lodash-es": "4.17.21",
23
- "@tarojs/shared": "3.7.0-alpha.19"
23
+ "@tarojs/shared": "3.7.0-alpha.20"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rollup/plugin-buble": "^0.21.3",