Set userTriggered to false on Input attribute modifications (#1159)

* Set userTriggered to false on Input attribute modifications

 - the fact we are intercepting them via hook rather than an event suggests to me that they could well be programmatic

* Create young-timers-grow.md
This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 8b55751a40
commit e4f8b7c022
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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,