Skip to content

Commit

Permalink
use correct parent
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Sep 19, 2024
1 parent b679fc0 commit a9dd5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default class MutationBuffer {
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);
this.genTextAreaValueMutation(parent as HTMLTextAreaElement);
}

const id = this.mirror.getId(n);
Expand Down

0 comments on commit a9dd5c3

Please sign in to comment.