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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user