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 ResizeObserver.disconnect #58

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

zzzzBov
Copy link
Contributor

@zzzzBov zzzzBov commented Aug 2, 2024

The mock disconnect method was clearing the collection of observed targets before attempting to remove those observed targets from the global state. This causes the collection to always be empty.

This fix clears the global state before clearing the local collection of observed targets.

The mock `disconnect` method was clearing the collection of observed targets before attempting to remove those observed targets from the global state. This causes the collection to always be empty.

This fix clears the global state before clearing the local collection of observed targets.
@trurl-master
Copy link
Owner

Hey!
Thanks for the PR. That kinda makes sense :) Let me check one small thing, and I'll merge it

@trurl-master trurl-master merged commit f6d3640 into trurl-master:master Aug 5, 2024
@trurl-master
Copy link
Owner

@zzzzBov I made a new release. Could you check if it works for you?

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.

2 participants