Was experiencing case when a TouchEnd event occurred on a text element i.e. (nodeType: 3 / nodeName: #text) (#180)

This was a recording taken with rrweb 0.7.27 (3afff63970) and rrweb-snapshot 0.7.21 (a0dc9481b2) so issue may have been fixed in the intervening commits
This commit is contained in:
Eoghan Murray
2020-03-01 07:00:32 +00:00
committed by GitHub
parent 69094081ea
commit 444570b7fc

View File

@@ -683,7 +683,9 @@ export class Replayer {
});
let currentEl: Element | null = el;
while (currentEl) {
currentEl.classList.add(':hover');
if (currentEl.classList) {
currentEl.classList.add(':hover');
}
currentEl = currentEl.parentElement;
}
}