BlazorIntersectionObserver icon indicating copy to clipboard operation
BlazorIntersectionObserver copied to clipboard

Uncaught TypeError: Cannot read properties of null (reading 'x')

Open hanj73 opened this issue 2 years ago • 1 comments

Describe the bug TypeError exception occurs when we navigate back while observing a blazor component.

To Reproduce Steps to reproduce the behavior:

  1. Go to a page with a blazor component that is being observed.
  2. Navigate back using JSRuntime.InvokeVoidAsync("history.go", "-1");
  3. See error

Expected behavior No exception when navigating back

Screenshots image Uncaught TypeError TypeError: Cannot read properties of null (reading 'x') at t (C:\Users\######\.nuget\packages\blazorintersectionobserver\3.1.0\staticwebassets\blazor-intersection-observer.min.js:1:255) at (C:\Users\######\.nuget\packages\blazorintersectionobserver\3.1.0\staticwebassets\blazor-intersection-observer.min.js:1:528) at (C:\Users\######\.nuget\packages\blazorintersectionobserver\3.1.0\staticwebassets\blazor-intersection-observer.min.js:1:545) at (C:\Users\######\.nuget\packages\blazorintersectionobserver\3.1.0\staticwebassets\blazor-intersection-observer.min.js:1:210)

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [Chrome/Edge/Firefox]
  • Version [110.0.5481.177/110.0.1587.50/110.0]

Additional context I can't reproduce this issue on my machine, but it happens every time on my colleague's machine. We'll provide an update on this when we have more details.

hanj73 avatar Feb 27 '23 17:02 hanj73

Hello. I have the same issue. I have used https://github.com/stavroskasidis/BlazorDialog . And every time when I click to open "Modal Dialog" the same TypeError exception occurs.

harry-flw avatar Mar 30 '23 10:03 harry-flw