You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to utilize the gallery in a modal (like zendesk garden one).
Actual behaviour
Only in the modal the Gallery component does not show any images.
I suspect in line 46 thumbnails is an empty array so thumbnails.map returns nothing because buildLayoutFlat -> buildLayout exits early on line 95.
Try to add some width to the container using CSS, or set drfaultContainerWidth prop to some value. Note: This is a workaround. The defaultContainerWidth should be set to some adequate minimum positive value, rather than 0.
Expected behaviour
Being able to utilize the gallery in a modal (like zendesk garden one).
Actual behaviour
Only in the modal the Gallery component does not show any images.
I suspect in line 46 thumbnails is an empty array so thumbnails.map returns nothing because buildLayoutFlat -> buildLayout exits early on line 95.
Steps to reproduce behaviour
Here's a sandbox to reproduce it
Browser and version
Browsers: all,
Version: "react-grid-gallery": "^1.0.1"
The text was updated successfully, but these errors were encountered: