@tarojs/runtime 3.6.31-canary.1 → 3.6.32
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.
- package/dist/dom/event.js +4 -5
- package/dist/dom/event.js.map +1 -1
- package/dist/index.cjs.js +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/runtime.esm.js +4 -5
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/runtime.esm.js
CHANGED
|
@@ -2496,15 +2496,14 @@ class TaroEvent {
|
|
|
2496
2496
|
this.defaultPrevented = true;
|
|
2497
2497
|
}
|
|
2498
2498
|
get target() {
|
|
2499
|
-
var _a, _b, _c, _d
|
|
2499
|
+
var _a, _b, _c, _d;
|
|
2500
2500
|
const cacheTarget = this.cacheTarget;
|
|
2501
2501
|
if (!cacheTarget) {
|
|
2502
2502
|
const target = Object.create(((_a = this.mpEvent) === null || _a === void 0 ? void 0 : _a.target) || null);
|
|
2503
|
-
const currentEle = env.document.getElementById(((_b = target.dataset) === null || _b === void 0 ? void 0 : _b.sid) || target.id || null);
|
|
2504
2503
|
// Note:优先判断冒泡场景alipay的targetDataset的sid, 不然冒泡场景target属性吐出不对,其余拿取当前绑定id
|
|
2505
|
-
const element = env.document.getElementById(((
|
|
2506
|
-
target.dataset =
|
|
2507
|
-
for (const key in (
|
|
2504
|
+
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);
|
|
2505
|
+
target.dataset = element !== null ? element.dataset : EMPTY_OBJ;
|
|
2506
|
+
for (const key in (_d = this.mpEvent) === null || _d === void 0 ? void 0 : _d.detail) {
|
|
2508
2507
|
target[key] = this.mpEvent.detail[key];
|
|
2509
2508
|
}
|
|
2510
2509
|
this.cacheTarget = target;
|