Skip to content

Commit

Permalink
Fixup eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Nov 13, 2023
1 parent b961dcd commit 897fa18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default class MutationBuffer {
const payload = {
texts: this.texts
.map((text) => {
let n = text.node;
const n = text.node;
if ((n.parentNode 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);
Expand Down
2 changes: 1 addition & 1 deletion packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ export class Replayer {
textarea.childNodes.forEach((c) =>
textarea.removeChild(c as TNode),
);
let tn = target.ownerDocument?.createTextNode(value as string);
const tn = target.ownerDocument?.createTextNode(value);
if (tn) {
textarea.appendChild(tn as TNode);
}
Expand Down

0 comments on commit 897fa18

Please sign in to comment.