Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bad merge
  • Loading branch information
JonasBa committed Sep 19, 2024
commit b679fc0f21245c982cc62ae92a9d4555b4b0ab9e
5 changes: 3 additions & 2 deletions packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,13 @@ export default class MutationBuffer {
const texts = [];
for (let i = 0; i < input.length; i++) {
const n = input[i].node;
const id = this.mirror.getId(n);
if (n.parentNode && (n.parentNode as Element).tagName === 'TEXTAREA') {
const parent = dom.parentNode(n);
if (parent && (parent as Element).tagName === 'TEXTAREA') {
// the node is being ignored as it isn't in the mirror, so shift mutation to attributes on parent textarea
this.genTextAreaValueMutation(n.parentNode as HTMLTextAreaElement);
}

const id = this.mirror.getId(n);
if (addedIds.has(id) || !this.mirror.has(id)) {
continue;
}
Expand Down