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

Element container resize does not trigger state update #11

Open
jkarttunen opened this issue Jan 8, 2021 · 1 comment
Open

Element container resize does not trigger state update #11

jkarttunen opened this issue Jan 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jkarttunen
Copy link

jkarttunen commented Jan 8, 2021

The overflow state may also change if the element container size changes, without window resize event.

Suggestion: use https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver instead of window resize listener.

@amorriscode amorriscode added the bug Something isn't working label Jan 8, 2021
@jblevins1991
Copy link

A really useful way of dealing with this would be to use https://www.npmjs.com/package/@juggle/resize-observer

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

No branches or pull requests

3 participants