BlazorIntersectionObserver icon indicating copy to clipboard operation
BlazorIntersectionObserver copied to clipboard

This codes brings the observed div into view on load, not desired

Open KKacer opened this issue 2 years ago • 2 comments

Updated, part of the code was not shown in the first post.

First thank you for the great work,

I have 1 issue with the code usage:

Tried this:

<IntersectionObserve> @{var isIntersecting = context.IsIntersecting;} <div @ref="context.Ref.Current" class="wrap @(isIntersecting ? "wrapActive" : "")">

...

The issue is that it always brings the div into the view on load of the page! Do you know what is causing this or what can be the issue?

Regards!

KKacer avatar Feb 26 '23 18:02 KKacer

Updated, part of the code was not shown earlier which I fixed, Don't know why it scrolls the page to the location where the observed item is.

KKacer avatar Mar 01 '23 15:03 KKacer

Hi, could you provide a minimal working example for this please?

ljbc1994 avatar Jul 23 '23 07:07 ljbc1994