Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Check Element type, before adding Observers #1304

Merged
merged 8 commits into from
Aug 15, 2024
Merged

Conversation

davidjbradshaw
Copy link
Owner

@davidjbradshaw davidjbradshaw commented Aug 9, 2024

Add check Element type, before trying to add an IntersectionObserver to it.

In some rare cases dom nodes can have a type other than element that don’t support having observers attached to them.

@davidjbradshaw davidjbradshaw changed the title Add check Element still exists, before add IntersectionObserver Fix: Check Element still exists, before add IntersectionObserver Aug 9, 2024
@davidjbradshaw davidjbradshaw changed the title Fix: Check Element still exists, before add IntersectionObserver Fix: Check Element still exists, before adding IntersectionObserver Aug 9, 2024
@davidjbradshaw davidjbradshaw changed the title Fix: Check Element still exists, before adding IntersectionObserver Fix: Check Element type, before adding IntersectionObserver Aug 14, 2024
@davidjbradshaw davidjbradshaw changed the title Fix: Check Element type, before adding IntersectionObserver Fix: Check Element type, before adding Observers Aug 14, 2024
@davidjbradshaw davidjbradshaw merged commit ae8217c into master Aug 15, 2024
4 checks passed
@davidjbradshaw davidjbradshaw deleted the intersetFix branch August 15, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant