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

useElementSize does not detect resize of element, only resize of browser #325

Closed
quinn opened this issue May 30, 2023 · 0 comments · Fixed by #473
Closed

useElementSize does not detect resize of element, only resize of browser #325

quinn opened this issue May 30, 2023 · 0 comments · Fixed by #473
Labels
bug Something isn't working

Comments

@quinn
Copy link

quinn commented May 30, 2023

https://github.com/juliencrn/usehooks-ts/blob/master/src/useElementSize/useElementSize.ts#L33

^^^^ I'm assuming without a 3rd arg, it binds to window? Why isn't the ref for the element passed in as the 3rd arg?

@juliencrn juliencrn added the bug Something isn't working label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants