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

[resize-observer] fix: Accept non-HTML elements #307

Merged
merged 1 commit into from
May 16, 2024

Conversation

jwueller
Copy link
Contributor

This change is pretty self-explanatory. ResizeObserver accepts Element, while useResizeObserver only accepts HTMLElement. This PR widens the type to Element, so that all element types (e.g. <svg/>) can be observed too.

Fixes/Closes #306.

@jaredLunde jaredLunde merged commit 28bf5a6 into jaredLunde:master May 16, 2024
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.

[resize-observer] Non-HTML elements are not accepted
2 participants