diff --git a/.changeset/young-timers-grow.md b/.changeset/young-timers-grow.md new file mode 100644 index 0000000000..e2f9b6b76a --- /dev/null +++ b/.changeset/young-timers-grow.md @@ -0,0 +1,5 @@ +--- +"rrweb": bugfix +--- + +For users of userTriggeredOnInput setting: also set userTriggered to false on Input attribute modifications; this was previously empty this variant of IncrementalSource.Input diff --git a/packages/rrweb/src/record/observer.ts b/packages/rrweb/src/record/observer.ts index 76a78c6fec..2360078445 100644 --- a/packages/rrweb/src/record/observer.ts +++ b/packages/rrweb/src/record/observer.ts @@ -453,7 +453,10 @@ function initInputObserver({ { set() { // mock to a normal event - eventHandler({ target: this as EventTarget } as Event); + eventHandler({ + target: this as EventTarget, + isTrusted: false, // userTriggered to false as this could well be programmatic + } as Event); }, }, false,