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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResizeObserver loop error when resizing changes from thumbnails to bullets #789

Open
2 tasks done
alii23 opened this issue Feb 12, 2024 · 0 comments
Open
2 tasks done

Comments

@alii23
Copy link

alii23 commented Feb 12, 2024

Checklist before opening an issue
Lots of issues are opened that are unrelated to this package, please take a moment to ensure the issue is not on your end 馃檹.

  • Did you try google?
  • Did you search for previous Issues in this repo?

Describe the bug
A clear and concise description of what the bug is.

In my implementation of react-image-gallery, larger screens display the gallery with thumbnails while smaller screens display bullets instead. It is possible to move between the two by resizing your browser window.
When moving from thumbnails to bullets in this manner, the ResizeObserver loop is not unobserved as this.thumbnailsWrapper.current obviously no longer exists, leading to an error with "ResizeObserver loop completed with undelivered notifications."

Image Gallery Version
What version of react-image-gallery are you using?
1.3.0

To Reproduce
Steps to reproduce the behavior:

  1. Implement react-image-gallery where a larger screen size shows thumbnails and a smaller screen shows bullets
  2. Change screen size in window from larger to smaller by dragging

Expected behavior
A clear and concise description of what you expected to happen.
No error thrown

Screenshots
If applicable, add screenshots to help explain your problem.

Client info (please complete the following information):\

  • OS: [e.g. iOS] Windows
  • Browser: [e.g. chrome, safari] Chrome

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant