rrweb
rrweb copied to clipboard
[Bug]: Getting this error "cannot read property on null (reading scrollTo)".
Preflight Checklist
- [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
What package is this bug report for?
rrweb
Expected Behavior
iFrame.contentWindow was returning null, hence was getting the error.
this.iframe.contentWindow!.scrollTo( (firstFullsnapshot as fullSnapshotEvent).data.initialOffset, );
Actual Behavior
Null Check should be added
Testcase Gist URL
No response
Additional Information
PR was created for the issue. PR: https://github.com/rrweb-io/rrweb/pull/915
Did a mistake is writing the issue description. The expected and Actual behaviour are interchanged in the description.
PS. This issue started occurring after updating the library to version 1.1.3
Is this bug fixed?
This has been fixed by #915

hi
we use rrweb player we get this error.i think its not fix
we use in reactjs
how could we handle this error?